add insin package assets (install.cfg, hooks, systemd units)
This commit is contained in:
14
deploy/insin/epson.service
Normal file
14
deploy/insin/epson.service
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Epson Print Service
|
||||||
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
WorkingDirectory=/opt/epson-print-service
|
||||||
|
ExecStart=/opt/epson-print-service/EpsonPrintService
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5s
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
1
deploy/insin/install.cfg
Normal file
1
deploy/insin/install.cfg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
install_path=/opt/epson-print-service
|
||||||
9
deploy/insin/postinst
Executable file
9
deploy/insin/postinst
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
INSTALL_DIR="$(pwd)"
|
||||||
|
chmod +x "$INSTALL_DIR/EpsonPrintService"
|
||||||
|
mkdir -p /var/lib/epson-print-service
|
||||||
|
install -m 644 epson.service /etc/systemd/system/epson.service
|
||||||
|
install -m 644 print_server.service /etc/systemd/system/print_server.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
systemctl enable --now epson.service print_server.service
|
||||||
5
deploy/insin/prem
Executable file
5
deploy/insin/prem
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
systemctl disable --now epson.service print_server.service 2>/dev/null || true
|
||||||
|
rm -f /etc/systemd/system/epson.service /etc/systemd/system/print_server.service
|
||||||
|
systemctl daemon-reload 2>/dev/null || true
|
||||||
14
deploy/insin/print_server.service
Normal file
14
deploy/insin/print_server.service
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Epson Print Server (companion)
|
||||||
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
WorkingDirectory=/opt/epson-print-service
|
||||||
|
ExecStart=/opt/epson-print-service/EpsonPrintService
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5s
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user