mirror of
https://github.com/NaitLee/Cat-Printer.git
synced 2025-05-17 15:50:11 -07:00
Merge pull request #12 from frankenstein91/feature/systemd
A service to make everyday work easier.
This commit is contained in:
commit
87c9afab5a
2
PKGBUILD
2
PKGBUILD
@ -25,6 +25,8 @@ package() {
|
|||||||
rm -rf "$pkgdir/usr/share/cat-printer/build-"*
|
rm -rf "$pkgdir/usr/share/cat-printer/build-"*
|
||||||
rm -rf "$pkgdir/usr/share/cat-printer/dev-diary.txt"
|
rm -rf "$pkgdir/usr/share/cat-printer/dev-diary.txt"
|
||||||
rm -rf "$pkgdir/usr/share/cat-printer/TODO"
|
rm -rf "$pkgdir/usr/share/cat-printer/TODO"
|
||||||
|
rm -rf "$pkgdir/usr/share/cat-printer/systemd"
|
||||||
|
install -m644 "$srcdir/cat-printer-git/systemd/cat-printer.service" "$pkgdir/usr/lib/systemd/system/"
|
||||||
cat <<EOF > "$pkgdir/usr/bin/cat-printer"
|
cat <<EOF > "$pkgdir/usr/bin/cat-printer"
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd /usr/share/cat-printer
|
cd /usr/share/cat-printer
|
||||||
|
14
systemd/cat-printer.service
Normal file
14
systemd/cat-printer.service
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=A project that provides support to some Bluetooth Cat Printer models
|
||||||
|
After=bluetooth.target network.target
|
||||||
|
Requires=bluetooth.target network.target
|
||||||
|
StartLimitIntervalSec=5
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/bin/cat-printer-server -s
|
||||||
|
Restart=on-failure
|
||||||
|
DynamicUser=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user