|
From: Adam R. <ad...@ex...> - 2015-10-05 11:44:01
|
In version 3.5.26 of the Wrapper, I have configured the lines:
RUN_AS_USER=my-user
USE_SYSTEMD=true
in the shell file, however when installing the wrapper the generated
systemd config file is missing the user property.
The resultant systemd config /etc/systemd/system/my-service.service:
[Unit]
Description=My Service
After=syslog.target
[Service]
Type=forking
ExecStart=/usr/local/my-app/tools/wrapper/bin/my-app.sh start sysd
ExecStop=/usr/local/my-app/tools/wrapper/bin/my-app.sh stop sysd
[Install]
WantedBy=multi-user.target
However systemd won't correctly start and stop the service because it
attempts to use the wrong user. To fix this I have to manually modify
/etc/systemd/system/my-service.service after installation and add the
following to the `[Service]` section:
User=my-user
Thus looks like a bug in the installation of the service wrapper to
me, can anyone confirm?
I have tried this on both Ubuntu Vivid and Ubuntu Wily.
--
Adam Retter
eXist Developer
{ United Kingdom }
ad...@ex...
irc://irc.freenode.net/existdb
|