Hello, On 4 July 2018 at 18:42, Shridhar Daithankar <[email protected]> wrote: > On बुधवार, ४ जुलै, २०१८ २:४२:१३ म.उ. IST Amey Abhyankar wrote: >> Hello, >> >> I am trying to create a service inside /etc/systemd/system & it's >> softlink in /etc/systemd/system/multi-user.target.wants but it's not >> helping. >> >> After system reboot, if I do ps -ef |grep -i javaapp it's not started. > > What is output of 'systemctl status <unit>' and 'journalctl -u <unit>' for the
Thanks Shridhar for the valuable inputs. ------------------------------------------------------------------------------- i) Output of <systemctl status> [root@app-01 amey]# systemctl status app1.service ● app1.service - app1 service Loaded: loaded (/etc/systemd/system/app1.service; enabled; vendor preset: disabled) Active: failed (Result: resources) since Wed 2018-07-04 04:36:03 IST; 1 day 2h ago Process: 760 ExecStart=/opt/app1/app1.sh $OPTIONS (code=exited, status=0/SUCCESS) Jul 04 04:36:03 app-01 systemd[1]: Starting app1 service... Jul 04 04:36:03 app-01 systemd[1]: PID file /opt/app1/app1.pid not readable (yet?) after start. Jul 04 04:36:03 app-01 systemd[1]: Failed to start app1 service. Jul 04 04:36:03 app-01 systemd[1]: Unit app1.service entered failed state. Jul 04 04:36:03 app-01 systemd[1]: app1.service failed. [root@app-01 amey]# ------------------------------------------------------------------------------- ii) Output of <journalctl -u> [root@app-01 amey]# journalctl -u app1.service -- Logs begin at Wed 2018-07-04 04:35:58 EDT, end at Thu 2018-07-05 07:03:01 EDT. -- Jul 04 04:36:03 app-01 systemd[1]: Starting app1 service... Jul 04 04:36:03 app-01 systemd[1]: PID file /opt/app1/app1.pid not readable (yet?) after start. Jul 04 04:36:03 app-01 systemd[1]: Failed to start app1 service. Jul 04 04:36:03 app-01 systemd[1]: Unit app1.service entered failed state. Jul 04 04:36:03 app-01 systemd[1]: app1.service failed. [root@app-01 amey]# ------------------------------------------------------------------------------- I think I messed up with some configuration in the file but unable to identify what is it. > specified service? > -- > Regards > Shridhar > _______________________________________________ > plug-mail mailing list > [email protected] > http://list.plug.org.in/listinfo/plug-mail _______________________________________________ plug-mail mailing list [email protected] http://list.plug.org.in/listinfo/plug-mail
