@
signal 我的 Systemd 脚本:
[Unit]
Description=打码
After=network.target
[Service]
Environment=SECRET_KEY_BASE=secret_key_chars
Environment=WEB_CONCURRENCY=4
Environment=RAILS_ENV=production
Environment=HOME=/root/
ExecStartPre=-/bin/mkdir -p /var/run/rita
ExecStartPre=/bin/chown -R www-data:www-data /var/run/rita/
ExecStart=/usr/local/rvm/bin/man_unicorn -c /var/www/rita/config/unicorn.rb
WorkingDirectory=/var/www/rita
[Install]
WantedBy=multi-user.target