Public bug reported:

Accidentally ran `/sbin/restart` (symlink to `/sbin/initctl`) without
arguments as my regular user, and unity was restarted (possibly amongst
other things). I would expect it to exit immediately with an error code,
given its usage and manpage (initctl (8)).

Easy to reproduce.

~$ dpkg -S `which restart`
upstart: /sbin/restart

~$ restart --help
Usage: restart [OPTION]... JOB [KEY=VALUE]...
Restart job.
...

~$ restart
unity7 start/killed, process 12622


== Environment ==

~$ lsb_release -rd
Description:    Ubuntu 16.04 LTS
Release:        16.04

~$ apt-cache policy upstart
upstart:
  Installed: 1.13.2-0ubuntu21
  Candidate: 1.13.2-0ubuntu21.1
  Version table:
     1.13.2-0ubuntu21.1 500
        500 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 
Packages
 *** 1.13.2-0ubuntu21 500
        500 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status

** Affects: upstart (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: xenial

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/1622025

Title:
  running /sbin/restart with no arguments restarts services

Status in upstart package in Ubuntu:
  New

Bug description:
  Accidentally ran `/sbin/restart` (symlink to `/sbin/initctl`) without
  arguments as my regular user, and unity was restarted (possibly
  amongst other things). I would expect it to exit immediately with an
  error code, given its usage and manpage (initctl (8)).

  Easy to reproduce.

  ~$ dpkg -S `which restart`
  upstart: /sbin/restart

  ~$ restart --help
  Usage: restart [OPTION]... JOB [KEY=VALUE]...
  Restart job.
  ...

  ~$ restart
  unity7 start/killed, process 12622


  == Environment ==

  ~$ lsb_release -rd
  Description:  Ubuntu 16.04 LTS
  Release:      16.04

  ~$ apt-cache policy upstart
  upstart:
    Installed: 1.13.2-0ubuntu21
    Candidate: 1.13.2-0ubuntu21.1
    Version table:
       1.13.2-0ubuntu21.1 500
          500 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 
Packages
   *** 1.13.2-0ubuntu21 500
          500 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
          100 /var/lib/dpkg/status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1622025/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to