From eb5a2b9cd7d4edef6042791d0a77cb1d257756ce Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Fri, 8 Nov 2024 17:45:27 -0500 Subject: Rename `hi` service unit --- debian/pilcrow.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 debian/pilcrow.service (limited to 'debian/pilcrow.service') diff --git a/debian/pilcrow.service b/debian/pilcrow.service new file mode 100644 index 0000000..e4c3589 --- /dev/null +++ b/debian/pilcrow.service @@ -0,0 +1,11 @@ +[Unit] +Description=Pilcrow chat service +After=network-online.target + +[Service] +EnvironmentFile=/etc/default/pilcrow +ExecStart=/usr/bin/pilcrow +Restart=on-failure + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3 From a417c62edd4d3c07ba37b01835e89ed650489e09 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Fri, 8 Nov 2024 18:00:16 -0500 Subject: Don't run the service as root. --- debian/pilcrow.service | 2 ++ 1 file changed, 2 insertions(+) (limited to 'debian/pilcrow.service') diff --git a/debian/pilcrow.service b/debian/pilcrow.service index e4c3589..3471d20 100644 --- a/debian/pilcrow.service +++ b/debian/pilcrow.service @@ -4,6 +4,8 @@ After=network-online.target [Service] EnvironmentFile=/etc/default/pilcrow +User=pilcrow +Group=pilcrow ExecStart=/usr/bin/pilcrow Restart=on-failure -- cgit v1.2.3