Displaying 2 results from an estimated 2 matches for "mykillproc".
Did you mean:
killproc
2015 Dec 30
2
Systemd and systemd-sysv-generator
On Wed, Dec 30, 2015 at 10:06 AM, James Hogarth <james.hogarth at gmail.com>
wrote:
>
> > > Best way to see this is using systemctl (status|cat|show) <servicename>
> > ...
> > >
> > > I expect if you do this for your failing service you'll get a better
> > > understanding of what's going on.
> >
> >
> > ~]#
2015 Dec 30
0
Systemd and systemd-sysv-generator
...stebin.com/BGLjGiuT
>
>
>
That doesn't even make sense ... if it's both rhel and oel version 7 then
systemctl start <Service> ... :/
Some lovely samples from it:
#A function to stop a program.
statuscheck() {
Let's import the standard distro function library! then ...
mykillproc()
{
Okay we might have a pid we think ... better kill it ...
kill -TERM $pid
usleep 200000
if ps h $pid >/dev/null >/dev/null 2>&1 ; then
sleep 1
if ps h $pid >/dev/null >/dev/null 2>&1 ; the...