foreman-export-systemd_user 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -2
- data/foreman-export-systemd_user.gemspec +1 -1
- data/lib/foreman/export/systemd_user.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b03ca222cc9bdd5faeb5b83d7502e8a474b0f17757027069a61d1ea371b97d34
|
|
4
|
+
data.tar.gz: b4ab848e3daff0171b3abac450a5927c978e7801e7f51c52bb3aa182855cb554
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d4e520fa7e89e7f0b09767eac6a0a00baf2f941d04e9e33e3bee9dd35cfe6bc438b8eaf761056c18d68f1a3f2f94bd6b9331d6ed9d64bf772f85ebcb2225914
|
|
7
|
+
data.tar.gz: cc120ed2047d131e3da8fc7c37be10adf9abf2d7d104d7e8804503f5021d580b7cf8b87c8c0a512a22f2f3bf7ed52ed16f18f42cb5f1f3db5ed59b6f923b33e4
|
data/README.md
CHANGED
|
@@ -11,14 +11,17 @@ then
|
|
|
11
11
|
bundle exec foreman export systemd-user --app <app-name>
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
After export, this runs the following to configure systemd:
|
|
15
15
|
```
|
|
16
16
|
systemctl --user daemon-reload
|
|
17
17
|
loginctl enable-linger
|
|
18
18
|
systemctl --user enable <app-name>.target
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
To start or restart your services after export:
|
|
22
|
+
```
|
|
19
23
|
systemctl --user restart <app-name>.target
|
|
20
24
|
```
|
|
21
|
-
After forgetting to run these steps enough times, I just decided to bake it into the export.
|
|
22
25
|
|
|
23
26
|
## Including extra systemd files
|
|
24
27
|
|
|
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = "foreman-export-systemd_user"
|
|
5
|
-
s.version = "0.2.
|
|
5
|
+
s.version = "0.2.1"
|
|
6
6
|
s.authors = ["Micah Geisel"]
|
|
7
7
|
s.email = ["micah@botandrose.com"]
|
|
8
8
|
s.homepage = "http://github.com/botandrose/foreman-export-systemd_user"
|
|
@@ -86,7 +86,6 @@ class Foreman::Export::SystemdUser < Foreman::Export::Base
|
|
|
86
86
|
run_command "systemctl --user daemon-reload"
|
|
87
87
|
run_command "test -f /var/lib/systemd/linger/$USER || loginctl enable-linger"
|
|
88
88
|
run_command "systemctl --user enable #{app}.target"
|
|
89
|
-
run_command "systemctl --user restart #{app}.target"
|
|
90
89
|
enable_timers
|
|
91
90
|
end
|
|
92
91
|
|