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