From ac9dfc5d9c355bef6243a05c53214853dbb7c6fa Mon Sep 17 00:00:00 2001 From: Marcin Jachymiak Date: Mon, 2 Mar 2020 18:10:27 -0500 Subject: [PATCH] Add upload systemd service --- setup-scripts/siad-upload.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 setup-scripts/siad-upload.service diff --git a/setup-scripts/siad-upload.service b/setup-scripts/siad-upload.service new file mode 100644 index 00000000..2c276c53 --- /dev/null +++ b/setup-scripts/siad-upload.service @@ -0,0 +1,13 @@ +[Unit] +Description=siad-upload + +[Service] +Type=simple +WorkingDirectory=/home/user/siad-upload +EnvironmentFile=/home/user/.sia/sia-upload.env +ExecStart=/home/user/go/bin/siad --api-addr "localhost:9970" --host-addr ":9972" --rpc-addr ":9971" +ExecStop=/home/user/go/bin/siac --api-addr "localhost:9970" --host-addr ":9972" --rpc-addr ":9971" stop +Restart=on-failure + +[Install] +WantedBy=default.target