forked from M4mmad/3xui-multi-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3xui-multi-protocol.service
28 lines (22 loc) · 1.13 KB
/
3xui-multi-protocol.service
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
26
27
28
[Unit]
Description=3xui-multi-protocol
[Service]
# systemd will run this executable to start the service
# if /usr/bin/dotnet doesn't work, use `which dotnet` to find correct dotnet executable path
ExecStart=/usr/bin/dotnet /etc/3xui-multi-protocol/3xui-multi-protocol.dll
# to query logs using journalctl, set a logical name here
SyslogIdentifier=3xui-multi-protocol
# Use your username to keep things simple.
# If you pick a different user, make sure dotnet and all permissions are set correctly to run the app
# To update permissions, use 'chown yourusername -R /srv/HelloWorld' to take ownership of the folder and files,
# Use 'chmod +x /etc/3xui-multi-protocol/' to allow execution of the executable file
User=root
# ensure the service restarts after crashing
Restart=always
# amount of time to wait before restarting the service
RestartSec=5
# This environment variable is necessary when dotnet isn't loaded for the specified user.
# To figure out this value, run 'env | grep DOTNET_ROOT' when dotnet has been loaded into your shell.
Environment=DOTNET_ROOT=/usr/lib64/dotnet
[Install]
WantedBy=multi-user.target