LoginSignup
1
1

More than 1 year has passed since last update.

意外と知られていない起動時にファイルを実行する方法

Posted at

注意事項

この記事はCronを採用したLinuxディストリビューションを対象としています。

やり方


やり方は簡単です。
まず、
crontab -e

を使い、好きなエディターでcrontabファイルをひらきます。
そしたら、最後の行にこのような感じで項目を追加します。

@reboot 実行ファイル名

これだけで設定できてしまいます。
/etc/rc.localなどがなくなってしまい困っていた人の参考になれば。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1