Open GoogleCodeExporter opened 9 years ago
You need to change the pidfile in /etc/conman.conf:
server pidfile="/var/run/console/conman.pid"
conmand doesn't support a "-pidfile" or "--pidfile" command-line option.
Original comment by chris.m.dunlap
on 21 Aug 2014 at 7:42
Sure enough, that worked. There is a PIDFILE= argument in both the init file
and in /etc/sysconfig and I had tried those. Perhaps those should be removed if
no longer relevant? At any rate, thanks and you can close.
Original comment by cameron....@gmail.com
on 21 Aug 2014 at 8:40
You should also update the PIDFILE value in /etc/sysconfig/conman. Yes, it's
needlessly confusing.
By default, conmand behaves as a traditional SysV daemon and performs a
double-fork. As such, it must update the pidfile with the pid of the
grandchild process, so-to-speak.
When you start/stop/restart the service via the SysV init script, that script
will (often) check the pidfile to see if the service is already running.
Ideally, conmand should support a command-line option to specify the location
of the pidfile. The SysV init script could then specify the location of this
file (which would override the conman.conf value, if present), and its contents
could be updated by conmand after the double-fork. systemd could also use it
with a Type=forking service file. That way, you won't have to specify the
pidfile in two configuration files (where it's too easy to overlook one). I'll
tag this as a feature request.
Original comment by chris.m.dunlap
on 22 Aug 2014 at 12:00
Original issue reported on code.google.com by
cameron....@gmail.com
on 20 Aug 2014 at 11:18