diff --git a/startup_service.dinit b/startup_service.dinit new file mode 100644 index 0000000..04bcdac --- /dev/null +++ b/startup_service.dinit @@ -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 diff --git a/startup_service.systemd b/startup_service.systemd new file mode 100644 index 0000000..f1f5c40 --- /dev/null +++ b/startup_service.systemd @@ -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