unviverasl service
This commit is contained in:
7
Makefile
7
Makefile
@@ -30,6 +30,13 @@ test: $(TEST_OBJS)
|
||||
clean:
|
||||
rm -f linuxSmartie $(OBJECTS) $(DEPS) $(TEST_OBJS)
|
||||
|
||||
install_service:
|
||||
mkdir -p ~/.config/systemd/user
|
||||
cp linuxSmartie.service ~/.config/systemd/user/linuxSmartie.service
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user enable linuxSmartie
|
||||
systemctl --user start linuxSmartie
|
||||
|
||||
|
||||
# build:
|
||||
# g++ -c $(BUILD_OPTS) -o LCDDisplay.o -Iinclude include/LCDDisplay.cpp
|
||||
|
||||
10
linuxSmartie.service
Normal file
10
linuxSmartie.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=HD44780 display service (linuxSmartie)
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=%h/git/linuxSmartie/linuxSmartie -d
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user