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]
|
[Service]
|
||||||
EnvironmentFile=/etc/zammad/zammad.env
|
EnvironmentFile=/etc/zammad/zammad.env
|
||||||
User=${ZAMMAD_USER}
|
User=zammad
|
||||||
Group=${ZAMMAD_GROUP}
|
Group=zammad
|
||||||
Restart=always
|
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}"
|
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]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
EnvironmentFile=/etc/zammad/zammad.env
|
EnvironmentFile=/etc/zammad/zammad.env
|
||||||
User=${ZAMMAD_USER}
|
User=zammad
|
||||||
Group=${ZAMMAD_GROUP}
|
Group=zammad
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
WorkingDirectory=${ZAMMAD_WORKING_DIRECTORY}
|
WorkingDirectory=/opt/zammad
|
||||||
|
|
||||||
ExecStart=/bin/bash -l -c "${BUNDLE_BINARY} exec script/scheduler.rb start"
|
ExecStart=/bin/bash -l -c "${BUNDLE_BINARY} exec script/scheduler.rb start"
|
||||||
|
|
||||||
|
|
|
@ -7,11 +7,11 @@ Requires=zammad.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=/etc/zammad/zammad.env
|
EnvironmentFile=/etc/zammad/zammad.env
|
||||||
User=${ZAMMAD_USER}
|
User=zammad
|
||||||
Group=${ZAMMAD_GROUP}
|
Group=zammad
|
||||||
Restart=always
|
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"
|
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
|
BUNDLE_BINARY=bundle
|
||||||
RAILS_ENV=production
|
RAILS_ENV=production
|
||||||
ZAMMAD_BIND_IP=127.0.0.1
|
ZAMMAD_BIND_IP=127.0.0.1
|
||||||
ZAMMAD_GROUP=zammad
|
|
||||||
ZAMMAD_RAILS_PORT=3000
|
ZAMMAD_RAILS_PORT=3000
|
||||||
ZAMMAD_USER=zammad
|
|
||||||
ZAMMAD_WEBSOCKET_PORT=6042
|
ZAMMAD_WEBSOCKET_PORT=6042
|
||||||
ZAMMAD_WORKING_DIRECTORY=/opt/zammad
|
|
||||||
|
|
|
@ -9,8 +9,8 @@ Wants=zammad-websocket.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=/etc/zammad/zammad.env
|
EnvironmentFile=/etc/zammad/zammad.env
|
||||||
User=${ZAMMAD_USER}
|
User=zammad
|
||||||
Group=${ZAMMAD_GROUP}
|
Group=zammad
|
||||||
Restart=always
|
Restart=always
|
||||||
ExecStart=/bin/sleep infinity
|
ExecStart=/bin/sleep infinity
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue