
ショコラ
Ubuntu で起動時にコマンドを実行するには?
/etc/systemd/system
にサービスファイルを置く

もっさん先輩
[Unit]
Description=VPNClientService
[Service]
User=root
ExecStart=/usr/local/bin/vpnclient start
ExecStop=/usr/local/bin/vpnclient stop
Type=forking
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable vpnclient
以上