diff --git a/advmame.service b/advmame.service new file mode 100644 index 0000000..722faf3 --- /dev/null +++ b/advmame.service @@ -0,0 +1,24 @@ +[Unit] +Description=ADVMAME +After=systemd-user-sessions.service +After=rc-local.service +IgnoreOnIsolate=yes + +[Service] +#User=debian +ExecStart=/home/debian/advmame.sh +Type=idle +Restart=always +RestartSec=10 +UtmpIdentifier=tty1 +TTYPath=/dev/tty1 +TTYReset=yes +TTYVHangup=yes +TTYVTDisallocate=yes +KillMode=process +IgnoreSIGPIPE=no +SendSIGHUP=yes +Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= L$ + +[Install] +WantedBy=multi-user.target