On RHEL6/CentOS6 what is the upstart way to:
chkconfig add my-svc chkconfig my-svc on
Explanation: I have written an /etc/init/xvc0.conf job. I can do
on the CLI, but after reboot initctl list gives me
... xvc0 stop/waiting ...
So I need a way to insert my job in the boot upstart sequence.
(Incidentally, while researching this I found (Ububtu) posts advising to create the job as /etc/event.d/xvc0. That appears to be ineffectual - start xvc0 gives Unknown. What gives? And what is then the purpose of /etc/event.d?)
While not a direct answer to my question I have found what follows:
If, in xvc0.conf I use the directive:
start on runlevel  stop on runlevel 
rather then the longhand:
start on runlevel 2 start on runlevel 3 ... stop on runlevel 0 ...
The job is started at boot
I have found pointers to the (extremely confusing) directives:
start on stopped rc RUNLEVEL= stop on starting rc RUNLEVEL=
Which are also used in the prefdm.conf job and which also appear to work, but in a way that subtly differs from the former (did not understand how) and basically mess up what I am trying to do (which is, starting agetty on /dev/xvc0).
Even so, the question above stands - editing scripts (and in a language of a rather opaque syntax) in order to achieve automatic startup seems raher inconvenient to me.