Version 0.0.2 added service files for systemd and dinit.
This commit is contained in:
parent
f320851fb5
commit
e35ccf3baf
2 changed files with 16 additions and 0 deletions
4
startup_service.dinit
Normal file
4
startup_service.dinit
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
type = scripted
|
||||||
|
command = /path_to_executable/StartUpRunner --log_dir /var/logs/StartUpRunner/ --json /path_to_startup_json/startup_apps.json
|
||||||
|
logfile = /var/log/dinit/StartUpRunner.log
|
||||||
|
after = network.target
|
||||||
12
startup_service.systemd
Normal file
12
startup_service.systemd
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
[Unit]
|
||||||
|
Description=A Simple Startup Runner Service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
ExecStart=/path_to_executable/StartUpRunner
|
||||||
|
KillMode=process
|
||||||
|
WorkingDirectory=/path_to_executable/StartUpApps/
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Loading…
Reference in a new issue