From dab2e3571a3afc33795fa54fef57f10243522f90 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Sat, 8 Apr 2017 04:04:27 +0200 Subject: Initial commit --- conf/mastodon-streaming.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 conf/mastodon-streaming.service (limited to 'conf/mastodon-streaming.service') diff --git a/conf/mastodon-streaming.service b/conf/mastodon-streaming.service new file mode 100644 index 0000000..1a5be2c --- /dev/null +++ b/conf/mastodon-streaming.service @@ -0,0 +1,16 @@ +[Unit] + Description=mastodon-streaming + After=network.target + +[Service] + Type=simple + User=mastodon + WorkingDirectory=/opt/mastodon/live + Environment="NODE_ENV=production" + Environment="PORT=4000" + ExecStart=/usr/bin/npm run start + TimeoutSec=15 + Restart=always + +[Install] + WantedBy=multi-user.target \ No newline at end of file -- cgit v1.2.3-70-g09d2