[DiscordArchive] why not use just screen without service ?
[DiscordArchive] why not use just screen without service ?
Archived author: Rymercyble • Posted: 2024-04-06T12:00:24.538000+00:00
Original source
why not use just screen without service ?
Archived author: Rymercyble • Posted: 2024-04-06T12:00:43.068000+00:00
Original source
i understand what are u aiming for but services are not rly meant for this
Archived author: Roboto • Posted: 2024-04-06T12:04:12.757000+00:00
Original source
This is what I used, haven't fired it up in a while but I don't remember having any issues:
```
[Unit]
Description=AzerothCore Worldserver
After=network-online.target
[Service]
Type=simple
User=roboto
UMask=0022
WorkingDirectory=/home/roboto/azerothcore
ExecStart=/bin/screen -S worldserver -D -m /home/roboto/azerothcore/bin/worldserver
KillSignal=SIGINT
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target
```
Archived author: Roboto • Posted: 2024-04-06T12:06:40.410000+00:00
Original source
If I had to guess I'd say you need to set `WorkingDirectory`