Ok I created my script this morning [Unit] Description=Connections After=network.target [Service] Type=notify ExecStart=/home/silentm/bin/mystart [Install] WantedBy=multi-user.target I put it in the correct directory, I rebooted and I see that my mystart script runs- programs start up but then they are killed with signal 15... Is there something else that allows them to continue to run? the mystart runs the needed programs then it does exit. I presume that mystart exit is killing the children. Whats the magic to let the children continue.? Thanks Jerry
On Fri, Sep 26, 2014 at 10:16:49AM -0400, Jerry Geis wrote:> Ok I created my script this morning > > [Unit] > Description=Connections > After=network.target > > [Service] > Type=notify > ExecStart=/home/silentm/bin/mystart > > [Install] > WantedBy=multi-user.target > > I put it in the correct directory, I rebooted and I see that > my mystart script runs- programs start up but then > they are killed with signal 15... > > Is there something else that allows them to continue to run? > the mystart runs the needed programs then it does exit. > I presume that mystart exit is killing the children. > > Whats the magic to let the children continue.?Since you're using Type=notify, does your daemon use sd_notify (or equivalent) to notify when it has finished starting up? -- Jonathan Billings <billings at negate.org>
On 26 Sep 2014 15:17, "Jerry Geis" <geisj at pagestation.com> wrote:> Is there something else that allows them to continue to run? > the mystart runs the needed programs then it does exit. > I presume that mystart exit is killing the children. >Did you see the template I made for you in your other thread on this subject? I suspect you will need the following in the [service] section Type=forking RemainAfterExit=yes Unless you are using the notify api you should not have that else it'll be considered a failed start... If after adding the above you still have issues respond with the output of systemctl status <service name> after trying systemctl start to start it