moved systemd units to scripts folder
This commit is contained in:
parent
807a1d88ef
commit
a3a31c6f24
6 changed files with 11 additions and 24 deletions
|
@ -1,18 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Zammad
|
|
||||||
After=syslog.target
|
|
||||||
After=network.target
|
|
||||||
StopWhenUnneeded=true
|
|
||||||
Wants=zammad-rails.service
|
|
||||||
Wants=zammad-scheduler.service
|
|
||||||
Wants=zammad-websocket.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=zammad
|
|
||||||
Group=zammad
|
|
||||||
Restart=always
|
|
||||||
ExecStart=/bin/sleep infinity
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,13 +1,18 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Zammad Application
|
Description=Zammad
|
||||||
|
After=syslog.target
|
||||||
|
After=network.target
|
||||||
|
StopWhenUnneeded=true
|
||||||
|
Wants=zammad-rails.service
|
||||||
|
Wants=zammad-scheduler.service
|
||||||
|
Wants=zammad-websocket.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=simple
|
||||||
User=zammad
|
User=zammad
|
||||||
WorkingDirectory=/home/zammad/zammad
|
Group=zammad
|
||||||
Environment=RAILS_ENV=production
|
Restart=always
|
||||||
PIDFile=/var/run/zammad.puma.pid
|
ExecStart=/bin/sleep infinity
|
||||||
ExecStart=puma -p 3000 -d -e production --pidfile /var/run/zammad.puma.pid
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in a new issue