There is probably more relevant information higher in the log; the status command is only showing you the end of the log. Try running: journalctl -u mojo_test.service
-Dan On Thu, Nov 23, 2017 at 4:24 AM, <david6...@gmail.com> wrote: > Dear sir; > I meet a problem when systemd start hypnotoad, detail follow: > > systemctl status mojo_test.service > ● mojo_test.service - My Mojolicious application > Loaded: loaded (/usr/lib/systemd/system/mojo_test.service; enabled; > vendor preset: disabled) > Active: failed (Result: exit-code) since Thu 2017-11-23 14:57:05 CST; > 7s ago > Process: 11559 ExecStart=/usr/local/bin/hypnotoad /home/mojo_test.pl > (code=exited, status=2) > > Nov 23 14:57:05 localhost.localdomain hypnotoad[11559]: Compilation failed > in require at /usr/local/share/perl5/Mojo/File.pm line 20. > Nov 23 14:57:05 localhost.localdomain hypnotoad[11559]: BEGIN > failed--compilation aborted at /usr/local/share/perl5/Mojo/File.pm line > 20. > Nov 23 14:57:05 localhost.localdomain hypnotoad[11559]: Compilation failed > in require at /usr/local/share/perl5/Mojo/Server/Hypnotoad.pm > > line 7. > Nov 23 14:57:05 localhost.localdomain hypnotoad[11559]: BEGIN > failed--compilation aborted at /usr/local/share/perl5/Mojo/ > Server/Hypnotoad.pm > > line 7. > Nov 23 14:57:05 localhost.localdomain hypnotoad[11559]: Compilation failed > in require at /usr/local/bin/hypnotoad line 7. > Nov 23 14:57:05 localhost.localdomain hypnotoad[11559]: BEGIN > failed--compilation aborted at /usr/local/bin/hypnotoad line 7. > Nov 23 14:57:05 localhost.localdomain systemd[1]: mojo_test.service: > control process exited, code=exited status=2 > Nov 23 14:57:05 localhost.localdomain systemd[1]: Failed to start My > Mojolicious application. > Nov 23 14:57:05 localhost.localdomain systemd[1]: Unit mojo_test.service > entered failed state. > Nov 23 14:57:05 localhost.localdomain systemd[1]: mojo_test.service failed. > > mojo_test.service > [Unit] > Description=My Mojolicious application > Requires=network.target > After=network.target > > [Service] > Type=forking > PIDFile=/run/mojo_test.pid > ExecStart=/usr/local/bin/hypnotoad /home/mojo_test.pl > ExecStop=/usr/local/bin/hypnotoad -s /home/mojo_test.pl > ExecReload=/usr/local/bin/hypnotoad /home/mojo_test.pl > KillMode=process > > [Install] > WantedBy=multi-user.target > > use /home/hypnotoad mojo_test.pl start to run is ok. > the running enviorments: > centos 7 > perl v5.16 > mojolicious new update > > please give some guides, thank you! > > David > > -- > You received this message because you are subscribed to the Google Groups > "Mojolicious" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to mojolicious+unsubscr...@googlegroups.com. > To post to this group, send email to mojolicious@googlegroups.com. > Visit this group at https://groups.google.com/group/mojolicious. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To post to this group, send email to mojolicious@googlegroups.com. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.