Browse Source

Service install fix

buster
Vítězslav Dvořák 5 years ago
parent
commit
6a9471173e
  1. 1
      .gitignore
  2. 8
      debian/changelog
  3. 8
      debian/flexibee-server.install
  4. 3
      debian/rules
  5. 26
      server/flexibee.service

1
.gitignore

@ -1,6 +1,5 @@
debian/flexibee-server
tmp
etc
nbproject
debian/debhelper-build-stamp
debian/flexibee-server.debhelper.log

8
debian/changelog

@ -1,4 +1,4 @@
flexibee-server (2017.2.0-3.2) UNRELEASED; urgency=medium
flexibee-server (2017.2.0-4.1) UNRELEASED; urgency=medium
[ Vítězslav Dvořák ]
* backup package
@ -15,8 +15,4 @@ flexibee-server (2017.1.11-1) UNRELEASED; urgency=medium
* Package update
* backup package
[ Cybervitexus ]
* Makefile added to project
* Added SystemD support Add WebApp menu entry and icon
-- Cybervitexus <info@vitexsoftware.cz> Sat, 11 Nov 2017 15:56:14 +0100
-- Cybervitexus <info@vitexsoftware.cz> Sat, 11 Nov 2017 16:39:03 +0100

8
debian/flexibee-server.install

@ -1,2 +1,6 @@
server/flexibee-server.desktop usr/share/applications
server/flexibee-server.png usr/share/pixmaps
server/flexibee-licensecheck data/usr/bin/flexibee-licensecheck
server/flexibee-server.desktop usr/share/applications
server/flexibee-server.png usr/share/pixmaps
server/avahi/flexibee.service data/etc/avahi/services/
server/flexibee.service lib/systemd/system/flexibee.service

3
debian/rules

@ -14,9 +14,6 @@ override_dh_install:
rm -rf data/usr/share/mime
rm -rf data/usr/share/mimelnk
rm -rf data/usr/share/pixmaps
mkdir -p data/etc/avahi/services/
cp server/flexibee.service data/etc/avahi/services/
cp server/flexibee-licensecheck data/usr/bin/flexibee-licensecheck
echo FLEXIBEE_CFG=server >> data/etc/default/flexibee
mv data/* debian/flexibee-server
dh_install

26
server/flexibee.service

@ -1,10 +1,16 @@
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">FlexiBee on %h</name>
<service>
<type>_https._tcp</type>
<port>5434</port>
<txt-record>path=/</txt-record>
</service>
</service-group>
[Unit]
Description=ABRA FlexiBee Server
[Service]
EnvironmentFile=-/etc/default/flexibee
ExecStart=/usr/sbin/flexibee-server
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=no
RestartPreventExitStatus=255
Type=forking
PIDFile=/var/run/flexibee.pid
[Install]
WantedBy=multi-user.target
Alias=flexibee.service

Loading…
Cancel
Save