Here’s my service file: [Unit] Description=DOESN'T WORK. [Service] Type=oneshot RemainAfterExit=yes ExecStart=/home/otsmanager/NOSTWINDOWS2/script.sh [Install] WantedBy=multi-user.target And here’s my script: #!/bin/bash export WINEPREFIX=/home/otsmanager/NOSTWINDOWS2 sudo -E -b wine /home/otsmanager/NOSTWINDOWS2/theforgottenserver.exe When running sudo systemctl status myservice, I get this output: ● myservice.service - DOESN'T WORK. Loaded: loaded (/lib/systemd/system/myservice.service; enabled; vendor preset: enabled) Active: active (exited) […]
Daily Archives: June 20, 2021
10 posts