# Centos 7
# 存放位置 /usr/lib/systemd/system
# 开启 systemctl start natapp
# 关闭 systemctl stop natapp
# 开机启动 systemctl enable natapp
# 取消开机启动 system disable natapp
[Unit]
Description=NatApp Service
Wants=network-online.target
After=network.target
[Service]
Type=simple
ExecStart=/natapp文件存放位置/natapp -authtoken=xxxxxxxxxxxxxxxxxxx -log=stdout &
# Suppress stderr to eliminate duplicated messages in syslog. NM calls openlog()
# with LOG_PERROR when run in foreground. But systemd redirects stderr to
# syslog by default, which results in logging each message twice.
StandardOutput=syslog
StandardError=null
[Install]
WantedBy=multi-user.target
01-12
550
04-03
4461
08-17
467
03-28
1889
04-29
11-26
355
07-13
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交