個人的覚書。
Debian5環境でserviceコマンド、systemctlコマンドが使えない場合の対策です。
Debian では起動スクリプトは /etc/init.d/ディレクトリに置かれているので、
su
/etc/init.d/apache2 restart
要は
service サービス名 コマンド名 を
/etc/init.d/ サービス名 コマンド名にしただけ。
ls -a /etc/init.d/
上記でinit.d配下にあるなら動きますよ、という話でした。
More than 1 year has passed since last update.
個人的覚書。
Debian5環境でserviceコマンド、systemctlコマンドが使えない場合の対策です。
Debian では起動スクリプトは /etc/init.d/ディレクトリに置かれているので、
su
/etc/init.d/apache2 restart
要は
service サービス名 コマンド名 を
/etc/init.d/ サービス名 コマンド名にしただけ。
ls -a /etc/init.d/
上記でinit.d配下にあるなら動きますよ、という話でした。
Register as a new user and use Qiita more conveniently