-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathpmcenter.service
More file actions
25 lines (22 loc) · 775 Bytes
/
pmcenter.service
File metadata and controls
25 lines (22 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# pmcenter systemd service template.
# READ THIS BEFORE TAKING ANY ACTION
# EDIT before applying to your system.
# if you want to start the bot automatically after system reboot, use this command:
# systemctl enable pmcenter.service
# if you don't know where to put systemd services, google: "systemd service location + your linux distribution"
[Unit]
Description=pmcenter Bot Daemon
After=network-online.target
Wants=network.target
[Service]
Type=simple
User=pmcenter
Group=pmcenter
# Example: WorkingDirectory=/home/pmcenter
WorkingDirectory={directory that's containing pmcenter.dll}
# Example: ExecStart=/usr/bin/dotnet /home/pmcenter/pmcenter.dll
ExecStart=/usr/bin/dotnet {pmcenter.dll's location}
KillMode=process
Restart=always
[Install]
WantedBy=multi-user.target