fixed systemd services
This commit is contained in:
parent
8a61de28eb
commit
d7eefa1d69
5 changed files with 11 additions and 14 deletions
|
@ -7,11 +7,11 @@ Requires=zammad.service
|
|||
|
||||
[Service]
|
||||
EnvironmentFile=/etc/zammad/zammad.env
|
||||
User=${ZAMMAD_USER}
|
||||
Group=${ZAMMAD_GROUP}
|
||||
User=zammad
|
||||
Group=zammad
|
||||
Restart=always
|
||||
|
||||
WorkingDirectory=${ZAMMAD_WORKING_DIRECTORY}
|
||||
WorkingDirectory=/opt/zammad
|
||||
|
||||
ExecStart=/bin/bash -l -c "${BUNDLE_BINARY} exec script/rails server -b ${ZAMMAD_BIND_IP} -p ${ZAMMAD_RAILS_PORT}"
|
||||
|
||||
|
|
|
@ -8,11 +8,11 @@ Requires=zammad.service
|
|||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=/etc/zammad/zammad.env
|
||||
User=${ZAMMAD_USER}
|
||||
Group=${ZAMMAD_GROUP}
|
||||
User=zammad
|
||||
Group=zammad
|
||||
Restart=always
|
||||
|
||||
WorkingDirectory=${ZAMMAD_WORKING_DIRECTORY}
|
||||
WorkingDirectory=/opt/zammad
|
||||
|
||||
ExecStart=/bin/bash -l -c "${BUNDLE_BINARY} exec script/scheduler.rb start"
|
||||
|
||||
|
|
|
@ -7,11 +7,11 @@ Requires=zammad.service
|
|||
|
||||
[Service]
|
||||
EnvironmentFile=/etc/zammad/zammad.env
|
||||
User=${ZAMMAD_USER}
|
||||
Group=${ZAMMAD_GROUP}
|
||||
User=zammad
|
||||
Group=zammad
|
||||
Restart=always
|
||||
|
||||
WorkingDirectory=${ZAMMAD_WORKING_DIRECTORY}
|
||||
WorkingDirectory=/opt/zammad
|
||||
|
||||
ExecStart=/bin/bash -l -c "${BUNDLE_BINARY} exec script/websocket-server.rb -b ${ZAMMAD_BIND_IP} -p ${ZAMMAD_WEBSOCKET_PORT} start"
|
||||
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
BUNDLE_BINARY=bundle
|
||||
RAILS_ENV=production
|
||||
ZAMMAD_BIND_IP=127.0.0.1
|
||||
ZAMMAD_GROUP=zammad
|
||||
ZAMMAD_RAILS_PORT=3000
|
||||
ZAMMAD_USER=zammad
|
||||
ZAMMAD_WEBSOCKET_PORT=6042
|
||||
ZAMMAD_WORKING_DIRECTORY=/opt/zammad
|
||||
|
|
|
@ -9,8 +9,8 @@ Wants=zammad-websocket.service
|
|||
|
||||
[Service]
|
||||
EnvironmentFile=/etc/zammad/zammad.env
|
||||
User=${ZAMMAD_USER}
|
||||
Group=${ZAMMAD_GROUP}
|
||||
User=zammad
|
||||
Group=zammad
|
||||
Restart=always
|
||||
ExecStart=/bin/sleep infinity
|
||||
|
||||
|
|
Loading…
Reference in a new issue