Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] why not use just screen without service ?

[DiscordArchive] why not use just screen without service ?

[DiscordArchive] why not use just screen without service ?

rektbyfaith
Administrator
0
04-06-2024, 12:00 PM
#1
Archived author: Rymercyble • Posted: 2024-04-06T12:00:24.538000+00:00
Original source

why not use just screen without service ?
rektbyfaith
04-06-2024, 12:00 PM #1

Archived author: Rymercyble • Posted: 2024-04-06T12:00:24.538000+00:00
Original source

why not use just screen without service ?

rektbyfaith
Administrator
0
04-06-2024, 12:00 PM
#2
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
rektbyfaith
04-06-2024, 12:00 PM #2

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

rektbyfaith
Administrator
0
04-06-2024, 12:04 PM
#3
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
```
rektbyfaith
04-06-2024, 12:04 PM #3

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
```

rektbyfaith
Administrator
0
04-06-2024, 12:06 PM
#4
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`
rektbyfaith
04-06-2024, 12:06 PM #4

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`

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)