最近のArchLinuxさん、デフォルトではジョブスケジューラの cron がインストールされません。 cron の代わりに systemd の timer を使うようにさせたいらしい。 ってことで systemd/Timer の使い方をメモ。 処理やコマンドをスケジュール登録したい場合、以下の2種類の設定ファイルを作成する。 1)サービス(〜.service):実行したい処理やコマンドを指定 2)タイマー(〜.timer):実行したいサービスとスケジュールを指定 各ファイルは /etc/systemd/system/ に保存する サービス(〜.service)の書き方 cat /etc/systemd/system/hoge.service [Unit] Description=hoge process ・・・・処理の概要 [Service] Type=simple ExecStart=
![cron が入ってないのね Archさん | まっつんぶろぐ](https://cdn-ak-scissors.b.st-hatena.com/image/square/026b20831e46f0a179dc61b486ad05789d2e849c/height=288;version=1;width=512/https%3A%2F%2Fmtunn.files.wordpress.com%2F2017%2F02%2Fcropped-e381bee381a3e381a4e38293e381b6e3828de38190e383ade382b4.png%3Fw%3D200)