WeBWorK Main Forum

webwork2 service does not start on reboot

webwork2 service does not start on reboot

by Andras Balogh -
Number of replies: 0
As the title says, the webwork2 service does not start on reboot, although it was enabled previously and the service files are there. I wonder if this is due to OS related settings.  Version 2.19 on Ubuntu 24.04.2 LTS.
 

Before reboot systemctl status webwork2: 
webwork2.service - webwork2
Loaded: loaded (/etc/systemd/system/webwork2.service; enabled; preset: enabled)
Active: active (running) since Sun 2025-05-04 11:39:50 CDT; 1 week 1 day ago
Process: 5883 ExecStart=hypnotoad /app/webwork/webwork2/bin/webwork2 (code=exited, status=0/SUCCESS)

After reboot systemctl status webwork2:
Unit webwork2.service could not be found.

Must reenable it after every reboot.

The content of the file is 
[Unit]
Description=webwork2
After=network.target
[Service]
Type=forking
#User=www-data
#Group=www-data
RuntimeDirectory=webwork2
WorkingDirectory=/app/webwork/webwork2
PIDFile=/run/webwork2/webwork2.pid
#Environment="MOJO_REVERSE_PROXY=1"
ExecStart=hypnotoad /app/webwork/webwork2/bin/webwork2
ExecReload=hypnotoad /app/webwork/webwork2/bin/webwork2
KillMode=process

[Install]
WantedBy=multi-user.target

----------