3 ms·
Just write a systemd unit. These commands are not any easier to support and are far worse from the purely technical point of view. You'll get: - startup only w
by steve_rambo 3y ago
Just write a systemd unit. These commands are not any easier to support and are far worse from the purely technical point of view. You'll get:
- startup only when the network is up
- proper logging
- automatic restarts on failure
- optional protection for your ssh keys and other data if there's a breach (refer to `systemd-analyze security`)
Run:
$ systemctl --user edit --full --force rclone-ftp.service
this opens a text editor; paste these lines:
[Unit]
After=network-online.target
Wants=network-online.target
[Install]
WantedBy=default.target
[Service]
ExecStart=/usr/bin/rclone --your-flags /directory
and then enable and start the service:
$ systemctl --user enable --now rclone-ftp
- rezonant 3y agoSeriously yes. Crontab isn't meant to keep your services up. We have a proper service manager now, out with the hacks.
- lillecarl 3y agoPeople go out of their way to build their own crappy version of systemd. systemd is far from perfect, and Poettering is radically anti-user. But it's the best we got and it serves us well
- frankjr 3y ago> Poettering is radically anti-user What does that mean?
- temp_praneshp 3y agoOne of the authors of systemd
- frankjr 3y agoI know who he is but don't understand how he's supposed to be "anti-user".