Started inital migration to rails 3.2
This commit is contained in:
21
forum.service
Normal file
21
forum.service
Normal file
@@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=Forum server
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
User=forum
|
||||
Group=forum
|
||||
SyslogIdentifier=forum-unicorn
|
||||
ExecStart=/opt/forum/.gem/ruby/1.9.1/bin/unicorn -E production -c /opt/forum/forum/unicorn.ru -D
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
ExecStop=/bin/kill -s QUIT $MAINPID
|
||||
WorkingDirectory=/opt/forum/forum
|
||||
PIDFile=/tmp/forum.pid
|
||||
|
||||
# Give a reasonable amount of time for the server to start up/shut down
|
||||
#TimeoutSec=300
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user