/opt/one_shot.shReturn Jan/07/2016 AM 08:15/etc/systemd/system/one_shot.service#!/bin/bash # # one_shot.sh # LOG_FILE="/tmp/one_shot.log" date >> $LOG_FILE echo "one_shot" >> $LOG_FILE date >> $LOG_FILE #ネットワークが立ち上がってから実行する起動設定[Unit] Description=one_shot shell After=netctl@profile.service [Service] ExecStart=/bin/bash /opt/one_shot.sh Type=simple [Install] WantedBy=multi-user.target
# systemctl enable one_shot