Retourner au contenu associé (entrée de forum : Comment rendre un fichier .sh au démarrage)
Posté par foobarbazz le 27 avril 2017 à 17:32. En réponse au message Comment rendre un fichier .sh au démarrage. Évalué à 4.
Sinon, il y a la méthode systemd :
/etc/systemd/system/truc.service
[Unit] Description=NomDuTruc [Service] Type=oneshot ExecStart=/ton/truc TimeoutSec=0 StandardInput=tty RemainAfterExit=yes [Install] WantedBy=multi-user.target
et il faut activer le service : systemctl enable truc.service
https://www.freedesktop.org/software/systemd/man/systemd.service.html
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: /etc/rc.local
Posté par foobarbazz . En réponse au message Comment rendre un fichier .sh au démarrage. Évalué à 4.
Sinon, il y a la méthode systemd :
/etc/systemd/system/truc.service
et il faut activer le service :
systemctl enable truc.service
https://www.freedesktop.org/software/systemd/man/systemd.service.html