From e601eba8b204b101f9f0115b0b1201ef1a3a0635 Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 27 Mar 2023 19:37:43 +0200 Subject: Remove systemd-specific code This source is targeted at all Linux-based operating systems. Since they are not all based on systemd the removed code should be re-introduced in packaging repositories for specific distributions. --- Makefile | 5 ----- systemd/webiot.service | 13 ------------- systemd/webiot.sysusers | 1 - 3 files changed, 19 deletions(-) delete mode 100644 systemd/webiot.service delete mode 100644 systemd/webiot.sysusers diff --git a/Makefile b/Makefile index 2c6bde8..bf557f2 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,3 @@ -# vim: shiftwidth=4 tabstop=4 noexpandtab - DESTDIR="" # leave empty for the current system or provide a fakeroot here PREFIX="/usr" PROGRAM="webiot" @@ -20,9 +18,6 @@ install: all install -Dm 644 config.json $(DESTDIR)/etc/$(PROGRAM)/config.json install -Dm 644 appdata/index.html.tmpl $(DESTDIR)$(PREFIX)/share/$(PROGRAM)/index.html.tmpl install -Dm 644 appdata/simple.css $(DESTDIR)$(PREFIX)/share/$(PROGRAM)/simple.css - install -Dm 644 systemd/$(PROGRAM).service $(DESTDIR)$(PREFIX)/lib/systemd/system/$(PROGRAM).service - install -Dm 644 systemd/$(PROGRAM).sysusers $(DESTDIR)$(PREFIX)/lib/sysusers.d/$(PROGRAM).conf debug: go run *.go -c config.json -a appdata - diff --git a/systemd/webiot.service b/systemd/webiot.service deleted file mode 100644 index 68f2186..0000000 --- a/systemd/webiot.service +++ /dev/null @@ -1,13 +0,0 @@ - -[Unit] -Description=An IoT webserver -After=network.target - -[Service] -User=webiot -Group=webiot -ExecStart=/usr/bin/webiot - -[Install] -WantedBy=multi-user.target - diff --git a/systemd/webiot.sysusers b/systemd/webiot.sysusers deleted file mode 100644 index 966fed9..0000000 --- a/systemd/webiot.sysusers +++ /dev/null @@ -1 +0,0 @@ -u webiot - "webiot daemon user" -- cgit v1.2.3-70-g09d2