by winestock » Fri Feb 08, 2013 11:55 pm
$this->bbcode_second_pass_quote('moonman', 'w')iki is right, the config file is not. I've fixed the package and added service file. Should be available soon in the repo (if it isnt already)
Is this the service file you put in the package for monkey:
$this->bbcode_second_pass_code('', '
[Unit]
Description=Monkey http server deamon
After=network.target
[Service]
Type=forking
ExecStart=/usr/bin/monkey -D
ExecStop=/bin/kill $MAINPID
ExecReload=/bin/kill $MAINPID ; /usr/bin/monkey -D
PIDFile=/var/run/monkey.pid.80
[Install]
WantedBy=multi-user.target
')
That is the one I tried and had the issue where I attempted "systemctl start monkey" and systemctl did not come back until I hit CTRL-C. This is the service that works:
$this->bbcode_second_pass_code('', '
[Unit]
Description=Monkey HTTP Daemon
Requires=network.target
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/monkey
PIDFile=/var/run/monkey.pid
Restart=always
[Install]
WantedBy=multi-user.target
')