Xenial Xerus

6月に試したUbuntu 16.04 (Xenial Xerus)

Ubuntu 16.04 'Xenial Xerus' LTS

Ubuntu Maniacより

Hyper-Vではゲストとのファイル共有ができないので、sambaをインストールして「sudo service samba restart」とやったところ

yano@Xenial:~$ sudo service samba restart
Failed to restart samba.service: Unit samba.service is masked.

と怒られた。statusを診たら

yano@Xenial:~$ sudo service samba status
● samba.service
   Loaded: masked (/dev/null; bad)
   Active: inactive (dead)

と言われて、何が何やら。

結局、Ubuntu 16.04: sambaをインストールしてWindows 10とファイル共有するに倣って

sudo systemctl restart smbd nmbd

とする事でOKだったのだが、Ubuntu Wikiを調べてみたところ、SystemdForUpstartUsers

Switching init systems If you are running Ubuntu vivid (15.04), you can easily switch between upstart and systemd at will since both packages are installed at present. As of March 9 2015, vivid was changed to use systemd by default, before that upstart was the default.

という件を発見。

どうやらvivid (15.04)以降はinitデーモンがupstartからsystemdに変わったという事らしい。なんだそれ~!

参照

Ubuntu http://www.ubuntu.com/

Ubuntu Wiki https://wiki.ubuntu.com/

技術評論社 http://gihyo.jp/

Narrow Escape https://www.hiroom2.com/

Wikipedia https://ja.wikipedia.org/wiki/