添加systemd文件。
This commit is contained in:
16
resources/coturn.service
Normal file
16
resources/coturn.service
Normal file
@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Coturn TURN/STUN Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/opt/Libraries/coturn-4.6.3/bin/turnserver -c /root/Server/turnserver.conf
|
||||
WorkingDirectory=/root/Server
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
User=root
|
||||
Environment="LD_LIBRARY_PATH=/opt/Libraries/boost_1_87_0/lib:$LD_LIBRARY_PATH"
|
||||
Environment="PATH=/opt/Libraries/coturn-4.6.3/bin:$PATH"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,14 +1,15 @@
|
||||
[Unit]
|
||||
Description=Http Server
|
||||
After=network.target
|
||||
# /etc/systemd/system/older.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/root/Server/Older
|
||||
WorkingDirectory=/root/Server
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
User=root
|
||||
Environment="LD_LIBRARY_PATH=/opt/Libraries/boost_1_87_0/lib:$LD_LIBRARY_PATH"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Reference in New Issue
Block a user