removed defaults from systemd vars. systemd is not bash...

This commit is contained in:
André Bauer 2017-10-03 11:37:33 +02:00
parent f4efae18c9
commit 8a61de28eb
4 changed files with 14 additions and 14 deletions

View file

@ -7,13 +7,13 @@ Requires=zammad.service
[Service]
EnvironmentFile=/etc/zammad/zammad.env
User=${ZAMMAD_USER:-zammad}
Group=${ZAMMAD_GROUP:-zammad}
User=${ZAMMAD_USER}
Group=${ZAMMAD_GROUP}
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]
WantedBy=zammad.service

View file

@ -8,13 +8,13 @@ Requires=zammad.service
[Service]
Type=forking
EnvironmentFile=/etc/zammad/zammad.env
User=${ZAMMAD_USER:-zammad}
Group=${ZAMMAD_GROUP:-zammad}
User=${ZAMMAD_USER}
Group=${ZAMMAD_GROUP}
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]
WantedBy=zammad.service

View file

@ -7,13 +7,13 @@ Requires=zammad.service
[Service]
EnvironmentFile=/etc/zammad/zammad.env
User=${ZAMMAD_USER:-zammad}
Group=${ZAMMAD_GROUP:-zammad}
User=${ZAMMAD_USER}
Group=${ZAMMAD_GROUP}
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]
WantedBy=zammad.service

View file

@ -9,8 +9,8 @@ Wants=zammad-websocket.service
[Service]
EnvironmentFile=/etc/zammad/zammad.env
User=${ZAMMAD_USER:-zammad}
Group=${ZAMMAD_GROUP:-zammad}
User=${ZAMMAD_USER}
Group=${ZAMMAD_GROUP}
Restart=always
ExecStart=/bin/sleep infinity