"init --version" does not work
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
ProcVersionSign
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
Ec2Availability
Ec2InstanceType: m1.medium
Ec2Kernel: aki-00000548
Ec2Ramdisk: ari-00000548
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
that's interesting: systemd
$ ls -l /sbin/init
lrwxrwxrwx 1 root root 20 mars 11 11:22 /sbin/init -> /lib/systemd/
$ /sbin/init --help
init [OPTIONS...] {COMMAND}
Send control commands to the init daemon. systemd --help
$ /lib/systemd/
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.