История изменений
Исправление ZenitharChampion, (текущая версия) :
Сделал так. Спасибо!
$ nano /etc/systemd/system/miner-start.service
[Unit]
Description=Start Miner
[Service]
Type=simple
ExecStart=/usr/bin/miner
$nano /etc/systemd/system/miner-start.timer
[Unit]
Description=Start Miner at 3AM
[Timer]
OnCalendar=*-*-* 03:00:00
[Install]
WantedBy=timers.target
$nano /etc/systemd/system/miner-stop.service
[Unit]
Description=Stop Miner
[Service]
Type=simple
#ExecStart=/usr/bin/miner --exit
ExecStart=/usr/bin/killall miner
$ nano /etc/systemd/system/miner-reboot.timer
[Unit]
Description=Start Miner at 3AM
[Timer]
OnCalendar=*-*-* 07:00:00
[Install]
WantedBy=timers.target
$nano /etc/systemd/system/miner-reboot.service
[Unit]
Description=Reboot
[Service]
Type=simple
ExecStart=sudo reboot
Исходная версия ZenitharChampion, :
Сделал так. Спасибо!
$ nano /etc/systemd/system/miner-start.service
[Unit]
Description=Start Miner
[Service]
Type=simple
ExecStart=/usr/bin/miner
$nano /etc/systemd/system/miner-start.timer
[Unit]
Description=Start Miner at 3AM
[Timer]
OnCalendar=*-*-* 03:00:00
[Install]
WantedBy=timers.target
$nano /etc/systemd/system/miner-stop.service
[Unit]
Description=Stop Miner
[Service]
Type=simple
#ExecStart=/usr/bin/miner --exit
ExecStart=/usr/bin/killall miner
$ nano /etc/systemd/system/miner-reboot.timer
[Unit]
Description=Start Miner at 3AM
[Timer]
OnCalendar=*-*-* 07:00:00
[Install]
WantedBy=timers.target
$nano /etc/systemd/system/miner-stop.service
[Unit]
Description=Reboot
[Service]
Type=simple
ExecStart=sudo reboot