Skip to content

Instantly share code, notes, and snippets.

@zclongpop123
Created November 21, 2019 04:09
Show Gist options
  • Save zclongpop123/f31ac77fdadd98d8a4dc2b0468ca0e51 to your computer and use it in GitHub Desktop.
Save zclongpop123/f31ac77fdadd98d8a4dc2b0468ca0e51 to your computer and use it in GitHub Desktop.
# Centos 7
# 存放位置 /usr/lib/systemd/system
# 开启 systemctl start deadlinewebservice
# 关闭 systemctl stop deadlinewebservice
# 开机启动 systemctl enable deadlinewebservice
# 取消开机启动 system disable deadlinewebservice
[Unit]
Description=Deadline Web Service
Wants=network-online.target
After=network.target
[Service]
Type=simple
ExecStart=/opt/Thinkbox/Deadline10/bin/deadlinewebservice
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment