この記事は最終更新日から一年以上が経過しています。情報が古くなっている可能性があるため注意してください。
CentOS7の環境でsmbを起動するためにsystemctl start smb
したところ…
12月 06 15:27:12 cent sudo[21191]: username : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/systemctl start smb.service
12月 06 15:27:12 cent systemd[1]: Starting Samba SMB Daemon...
-- Subject: Unit smb.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit smb.service has begun starting up.
12月 06 15:27:12 cent systemd[1]: smb.service: main process exited, code=exited, status=1/FAILURE
12月 06 15:27:12 cent systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: Unit smb.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit smb.service has failed.
--
-- The result is failed.
12月 06 15:27:12 cent systemd[1]: Unit smb.service entered failed state.
チェックポイント
systemd
の status がenable
になっているか?systemctl list-unit-files
/etc/samba/smb.conf
は正しく設定されているか?
CentOS6.xから7へアップグレードした際に調子が悪くなったので、yum remove samba
して再インストール。他にもいろいろなエラーが発生したので、プロセス管理機構が大幅に変わるようなアップデートは新規インストールした方がよいなと改めて思う。