Inadyn systemd daemon

This commit is contained in:
Bob Mottram 2018-05-12 19:28:30 +01:00
parent cb21669a63
commit 5a24012929
2 changed files with 20 additions and 12 deletions

View File

@ -1657,7 +1657,7 @@ image_install_inadyn() {
mkdir -p "$rootdir/root/build"
fi
chroot "$rootdir" apt-get -yq install build-essential curl libgnutls28-dev automake1.11 libconfuse-dev
chroot "$rootdir" apt-get -yq install gnutls-dev libconfuse-dev
chroot "$rootdir" apt-get -yq install gnutls-dev libconfuse-dev pkg-config
if [ -d /repos/inadyn ]; then
mkdir "$rootdir/root/build/inadyn"
@ -1696,13 +1696,17 @@ image_install_inadyn() {
chmod 600 "$rootdir/etc/inadyn.conf"
{ echo '[Unit]';
echo 'Description=inadyn (DynDNS updater)';
echo 'After=network.target';
echo 'Description=Internet Dynamic DNS Client';
echo 'Documentation=man:inadyn';
echo 'Documentation=man:inadyn.conf';
echo 'Documentation=https://github.com/troglobit/inadyn';
echo 'ConditionPathExists=/etc/inadyn.conf';
echo 'After=network-online.target';
echo 'Requires=network-online.target';
echo '';
echo '[Service]';
echo 'ExecStart=/usr/sbin/inadyn --config /etc/inadyn.conf';
echo 'Restart=always';
echo 'Type=forking';
echo 'Type=simple';
echo "ExecStart=/usr/sbin/inadyn -n -s --config ${INADYN_CONFIG_FILE}";
echo '';
echo '[Install]';
echo 'WantedBy=multi-user.target'; } > "$rootdir/etc/systemd/system/inadyn.service"

View File

@ -526,7 +526,7 @@ function install_dynamicdns {
# https version 1.99.8
apt-get -yq install build-essential curl libgnutls28-dev automake1.11
apt-get -yq install gnutls-dev libconfuse-dev
apt-get -yq install gnutls-dev libconfuse-dev pkg-config
if [ ! -d "$INSTALL_DIR/inadyn" ]; then
if [ -d /repos/inadyn ]; then
@ -568,13 +568,17 @@ function install_dynamicdns {
chmod 600 "${INADYN_CONFIG_FILE}"
{ echo '[Unit]';
echo 'Description=inadyn (DynDNS updater)';
echo 'After=network.target';
echo 'Description=Internet Dynamic DNS Client';
echo 'Documentation=man:inadyn';
echo 'Documentation=man:inadyn.conf';
echo 'Documentation=https://github.com/troglobit/inadyn';
echo 'ConditionPathExists=/etc/inadyn.conf';
echo 'After=network-online.target';
echo 'Requires=network-online.target';
echo '';
echo '[Service]';
echo "ExecStart=/usr/sbin/inadyn --config ${INADYN_CONFIG_FILE}";
echo 'Restart=always';
echo 'Type=forking';
echo 'Type=simple';
echo "ExecStart=/usr/sbin/inadyn -n -s --config ${INADYN_CONFIG_FILE}";
echo '';
echo '[Install]';
echo 'WantedBy=multi-user.target'; } > /etc/systemd/system/inadyn.service