Created
January 5, 2015 19:15
-
-
Save nofxx/f01dcfe3e9d504181d76 to your computer and use it in GitHub Desktop.
errbit unicorn systemd service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Errbit Unicorn Server | |
Requires=mongodb.service | |
After=mongodb.service network.target | |
[Service] | |
# Change here: user, group and directory to errbit root | |
User=errbit | |
Group=errbit | |
WorkingDirectory=/var/www/apps/errbit | |
Environment=RAILS_ENV=production | |
SyslogIdentifier=errbit-unicorn | |
PIDFile=/run/errbit/errbit.pid | |
RuntimeDirectory=errbit | |
RuntimeDirectoryMode=775 | |
CapabilityBoundingSet= | |
PrivateTmp=true | |
PrivateDevices=true | |
ProtectSystem=full | |
ProtectHome=true | |
NoNewPrivileges=true | |
# Change here: unicorn.rb path | |
ExecStart=/usr/bin/bundle exec "unicorn_rails -c /var/www/apps/errbit/config/unicorn.rb -E production" | |
ExecStop=/usr/bin/kill -QUIT $MAINPID | |
ExecReload=/usr/bin/kill -USR2 $MAINPID | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment