--
You received this message because you are subscribed to the Google Groups "nemo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nemo+uns...@list.nist.gov.
To view this discussion on the web visit https://groups.google.com/a/list.nist.gov/d/msgid/nemo/3f388c92-9c33-400b-839b-f1730321f048n%40list.nist.gov.
[Unit]
Description=NGINX HTTP and reverse proxy server
After=syslog.target netweork-online.target remote-fs.target nss-lookup.target
Wants=network-online.target
[Service]
Type=forking
PIDFile=/tmp/nginx.pid
ExecStartPre=/home/nemo/nginx/nginx -t
ExecStart=/home/nemo/nginx/nginx
ExecReload=/home/nemo/nginx/nginx -s reload
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
However, the service fails to start with the following error:
● nginx.service - NGINX HTTP and reverse proxy server
Loaded: loaded (/etc/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2021-05-05 09:39:41 CDT; 3h 45min ago
Process: 51226 ExecStartPre=/home/nemo/nginx/nginx -t (code=exited, status=1/FAILURE)
May 05 09:39:40 nemo.che.lsu.edu systemd[1]: Starting NGINX HTTP and reverse proxy server...
May 05 09:39:41 nemo.che.lsu.edu nginx[51226]: nginx: [emerg] open() "./configuration" failed (2: No such file or directory)
May 05 09:39:41 nemo.che.lsu.edu nginx[51226]: nginx: configuration file ./configuration test failed
May 05 09:39:41 nemo.che.lsu.edu systemd[1]: nginx.service: control process exited, code=exited status=1
May 05 09:39:41 nemo.che.lsu.edu systemd[1]: Failed to start NGINX HTTP and reverse proxy server.
May 05 09:39:41 nemo.che.lsu.edu systemd[1]: Unit nginx.service entered failed state.
May 05 09:39:41 nemo.che.lsu.edu systemd[1]: nginx.service failed.
Again, thank you very much for your help!
Regards,
Sergi
[Unit]
Description=NGINX HTTP and reverse proxy server
After=syslog.target netweork-online.target remote-fs.target nss-lookup.target
Wants=network-online.target
[Service]
Type=forking
ExecStart=/home/nemo/nginx/nginx -c /home/nemo/nginx/configuration
ExecReload=/home/nemo/nginx/nginx -s reload
ExecStop=/bin/kill -s TERM $MAINPID
[Install]
WantedBy=multi-user.target