"init --version" does not work

Bug #1433633 reported by Robie Basak
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Won't Fix
Low
Unassigned

Bug Description

According to init(1), --version is expected to work. But instead I get:

$ init --version
init: unrecognized option '--version'

As we switch from upstart to systemd, I wanted to check which I was running, and this seemed like an obvious way to do it.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: systemd-sysv 219-4ubuntu5
ProcVersionSignature: User Name 3.19.0-9.9-generic 3.19.1
Uname: Linux 3.19.0-9-generic x86_64
ApportVersion: 2.16.2-0ubuntu3
Architecture: amd64
Date: Wed Mar 18 14:18:59 2015
Ec2AMI: ami-00000c76
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.medium
Ec2Kernel: aki-00000548
Ec2Ramdisk: ari-00000548
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Robie Basak (racb) wrote :
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

that's interesting:
$ ls -l /sbin/init
lrwxrwxrwx 1 root root 20 mars 11 11:22 /sbin/init -> /lib/systemd/systemd
$ /sbin/init --help
init [OPTIONS...] {COMMAND}

Send control commands to the init daemon.
$ /lib/systemd/systemd --help
systemd [OPTIONS...]

Starts up and maintains the system or user services.

-> seems help commands changes depending on systemd binary on user's name.

@Robie: you can use systemctl --version in the interim term.

Changed in systemd (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Nick Rosbrook (enr0n) wrote :

From systemd(1):

For compatibility with SysV, if the binary is called as init and is not the first process on the machine (PID is not 1), it will execute telinit and pass all command line arguments unmodified. That means init and telinit are mostly equivalent when invoked from normal login sessions. See telinit(8) for more information.

Looking at telinit(8), there is no --version flag. I think things are working as expected.

(I realize the man pages may have changed over time, just doing some bug cleanup).

Changed in systemd (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.