Skip to content

fixing some systemd configs #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: debian-master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export COMPILE_DATE ?= $(shell date -u --date="`dpkg-parsechangelog|grep ^Date|h
DEB_BUILD_ARCH_OS ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)

%:
dh $@ -with autotools_dev,autoreconf
dh $@ -with autotools_dev,autoreconf,systemd

override_dh_auto_configure:
./autogen.sh
Expand All @@ -43,8 +43,8 @@ endif
ifeq ($(DEB_BUILD_ARCH_OS),linux)
override_dh_install:
cp apparmor-profile debian/tlsdate/etc/apparmor.d/usr.bin.tlsdate
# use copy from debian/tlsdated.service as long as upstream file is broken:
cp debian/tlsdated.service debian/tlsdate/lib/systemd/system/
cp systemd/tlsdated.service debian/tlsdate/lib/systemd/system/
cp systemd/tlsdated.default debian/tlsdate/etc/default/tlsdated
dh_apparmor --profile-name=usr.bin.tlsdate -ptlsdate
override_dh_installinit:
dh_installinit --name=tlsdated
Expand Down
1 change: 1 addition & 0 deletions debian/tlsdate.dirs
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ etc/apparmor.d
etc/tlsdate
var/cache/tlsdated
lib/systemd/system
etc/default
10 changes: 0 additions & 10 deletions debian/tlsdated.service

This file was deleted.

File renamed without changes.
6 changes: 3 additions & 3 deletions systemd/tlsdated.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ After=network.target
[Service]
Type=simple
EnvironmentFile=/etc/default/tlsdated
ExecStart=/usr/sbin/tlsdated ${DAEMON_OPTS}
ExecReload=/bin/kill -HUP ${MAINPID}
ExecStop=/bin/kill -INT ${MAINPID}
ExecStart=/usr/sbin/tlsdated $DAEMON_OPTS
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/bin/kill -INT $MAINPID