Skip to content

ubic [stop|start|restart] --force fails to restart some or all of ubic.[ping|update|watchdog] #89

Description

@drmuey

As non-root user (ICIM):

$ export PATH="/arbitrary/installation/path/of/perl/and/ubic/scripts/";
$ ubic-admin setup --batch-mode --local --no-sticky-777
… add a service called foo …
$ ubic status
$ ubic stop --force
Stopping foo... stopped
ubic
    Stopping ubic.ping... not running
    Stopping ubic.update... stopped
    Stopping ubic.watchdog... not running
$ ubic status
foo	off
ubic
    ubic.ping	off
    ubic.update	off
    ubic.watchdog	off
$ ubic start --force 
Starting foo... started
ubic
    Starting ubic.ping... started (pid 8423)
    Starting ubic.update... started (pid 8431)
    Starting ubic.watchdog... started (pid 8434)
$ ubic status
foo	running
ubic
    ubic.ping	not running
    ubic.update	running (pid 8431)
    ubic.watchdog	not running
$ ubic restart --force
Restarting foo... restarted
ubic
    Restarting ubic.ping... restarted
    Restarting ubic.update... restarted
    Restarting ubic.watchdog... restarted
$ ubic status
foo	running
ubic
    ubic.ping	not running
    ubic.update	running (pid 8548)
    ubic.watchdog	not running
$

ubic/log/watchdog.log show this apparently from the cronjob (but it does not get logged every minute && manually running the cronjob does not log that or get it started :/)

[Thu Oct  4 15:26:37 2018]	ubic.watchdog status is 'not running', restarting
[Thu Oct  4 15:26:37 2018]	ubic.ping status is 'not running', restarting

the cron job is:

* * * * * PATH=/arbitrary/installation/path/of/perl/and/ubic/scripts/:$PATH ubic-watchdog ubic.watchdog >>$HOME/ubic/log/watchdog.log 2>>$HOME/ubic/log/watchdog.err.log

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions