From 4cb7d225daba5b6d3cfb248d33a8f07812ebe347 Mon Sep 17 00:00:00 2001 From: 12nick12 Date: Tue, 12 Dec 2017 09:12:17 -0500 Subject: [PATCH] Create systemd script --- systemd script | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 systemd script diff --git a/systemd script b/systemd script new file mode 100644 index 0000000..ec89ca3 --- /dev/null +++ b/systemd script @@ -0,0 +1,15 @@ +# /etc/systemd/system/pwd.service +# change user to someone whos not root + +[Unit] +Description=pwd +After=network-online.target + +[Service] +User=root +Type=simple +ExecStart=/usr/bin/npm start /opt/plex-web-downloader/ +Restart=on-abort + +[Install] +WantedBy=default.target