add files to enable and restart services.
This commit is contained in:
parent
5a027ad146
commit
3caf15949a
3 changed files with 26 additions and 9 deletions
17
README.md
17
README.md
|
@ -21,15 +21,14 @@ You can also run `./install-services.sh` to install the systemd service files.
|
|||
|
||||
From then on you can enable them all like this:
|
||||
|
||||
sudo systemctl enable freehl-cstrike
|
||||
sudo systemctl enable freehl-dmc
|
||||
sudo systemctl enable freehl-gearbox
|
||||
sudo systemctl enable freehl-hunger
|
||||
sudo systemctl enable freehl-rewolf
|
||||
sudo systemctl enable freehl-scihunt
|
||||
sudo systemctl enable freehl-tfc
|
||||
sudo systemctl enable freehl-valve
|
||||
`./enable-services.sh`
|
||||
|
||||
etc.
|
||||
...to restart/launch them:
|
||||
|
||||
`./restart-services.sh`
|
||||
|
||||
etc. - you will figure it out
|
||||
|
||||
-- eukara
|
||||
|
||||
|
||||
|
|
9
enable-services.sh
Executable file
9
enable-services.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
SERVICE_DIR="/etc/systemd/system"
|
||||
|
||||
find ./ -type f -name '*.service' -print | while read LINE
|
||||
do
|
||||
FILE=$(basename "$LINE" | cut -d '.' -f 1)
|
||||
systemctl enable "$FILE"
|
||||
done
|
9
restart-services.sh
Executable file
9
restart-services.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
SERVICE_DIR="/etc/systemd/system"
|
||||
|
||||
find ./ -type f -name '*.service' -print | while read LINE
|
||||
do
|
||||
FILE=$(basename "$LINE" | cut -d '.' -f 1)
|
||||
systemctl restart "$FILE"
|
||||
done
|
Loading…
Reference in a new issue