あらすじ
systemctl で start とか stop とかできるように /etc/systemd/system/ 以下にサービス定義を置いて安心していたら,自動起動しなかったよ!
それからどーした
sudo systemctl list-unit-files --type=service
で
nginx.service disabled
とか出てきたら,サービス定義は生きてるけど自動起動が無効なので,
sudo systemctl enable nginx.service
とかする.
他にも mask/unmask とかハマりポイントなんで,systemctl の man を見て対処する.