ubuntu - Getting stuck with phoenix app running as systemd Services -
i want phoenix app run systemd service on ubuntu16.04, create file in /lib/systemd/system/myapp.service, , enable by: systemctl enable myapp.service
. after doing this, can't start application systemctl start myapp.service
, print nothing. when run systemctl status myapp.server
, shows inactive. here myapp.service:
[unit] description=my server after=network.target after=syslog.target [install] wantedby=multi-user.target alias=myapp.service [service] # start main service type=simple execstart=/var/www/server/bcareserver/bin/myapp start execreload=/var/www/server/bcareserver/bin/myapp restart restart=on-failure privatetmp=false
here output of systemctl status myapp.service
:
xxx:/etc/systemd/system/multi-user.target.wants# systemctl status myapp.service ● myapp.service - server loaded: loaded (/lib/systemd/system/myapp.service; enabled; vendor preset: enabled) active: inactive (dead) since thu 2017-04-06 17:41:17 cst; 3s ago process: 29687 execstart=/var/www/server/bcareserver/bin/myapp start (code=exited, status=0/success) main pid: 29687 (code=exited, status=0/success) apr 06 17:41:17 xxx systemd[1]: started server.
i can still manually start app type: /var/www/server/bcareserver/bin/myapp start
.
Comments
Post a Comment