Inadyn systemd daemon
This commit is contained in:
parent
cb21669a63
commit
5a24012929
|
@ -1657,7 +1657,7 @@ image_install_inadyn() {
|
||||||
mkdir -p "$rootdir/root/build"
|
mkdir -p "$rootdir/root/build"
|
||||||
fi
|
fi
|
||||||
chroot "$rootdir" apt-get -yq install build-essential curl libgnutls28-dev automake1.11 libconfuse-dev
|
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
|
if [ -d /repos/inadyn ]; then
|
||||||
mkdir "$rootdir/root/build/inadyn"
|
mkdir "$rootdir/root/build/inadyn"
|
||||||
|
@ -1696,13 +1696,17 @@ image_install_inadyn() {
|
||||||
chmod 600 "$rootdir/etc/inadyn.conf"
|
chmod 600 "$rootdir/etc/inadyn.conf"
|
||||||
|
|
||||||
{ echo '[Unit]';
|
{ echo '[Unit]';
|
||||||
echo 'Description=inadyn (DynDNS updater)';
|
echo 'Description=Internet Dynamic DNS Client';
|
||||||
echo 'After=network.target';
|
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 '';
|
||||||
echo '[Service]';
|
echo '[Service]';
|
||||||
echo 'ExecStart=/usr/sbin/inadyn --config /etc/inadyn.conf';
|
echo 'Type=simple';
|
||||||
echo 'Restart=always';
|
echo "ExecStart=/usr/sbin/inadyn -n -s --config ${INADYN_CONFIG_FILE}";
|
||||||
echo 'Type=forking';
|
|
||||||
echo '';
|
echo '';
|
||||||
echo '[Install]';
|
echo '[Install]';
|
||||||
echo 'WantedBy=multi-user.target'; } > "$rootdir/etc/systemd/system/inadyn.service"
|
echo 'WantedBy=multi-user.target'; } > "$rootdir/etc/systemd/system/inadyn.service"
|
||||||
|
|
|
@ -526,7 +526,7 @@ function install_dynamicdns {
|
||||||
# https version 1.99.8
|
# https version 1.99.8
|
||||||
|
|
||||||
apt-get -yq install build-essential curl libgnutls28-dev automake1.11
|
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 "$INSTALL_DIR/inadyn" ]; then
|
||||||
if [ -d /repos/inadyn ]; then
|
if [ -d /repos/inadyn ]; then
|
||||||
|
@ -568,13 +568,17 @@ function install_dynamicdns {
|
||||||
chmod 600 "${INADYN_CONFIG_FILE}"
|
chmod 600 "${INADYN_CONFIG_FILE}"
|
||||||
|
|
||||||
{ echo '[Unit]';
|
{ echo '[Unit]';
|
||||||
echo 'Description=inadyn (DynDNS updater)';
|
echo 'Description=Internet Dynamic DNS Client';
|
||||||
echo 'After=network.target';
|
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 '';
|
||||||
echo '[Service]';
|
echo '[Service]';
|
||||||
echo "ExecStart=/usr/sbin/inadyn --config ${INADYN_CONFIG_FILE}";
|
echo 'Type=simple';
|
||||||
echo 'Restart=always';
|
echo "ExecStart=/usr/sbin/inadyn -n -s --config ${INADYN_CONFIG_FILE}";
|
||||||
echo 'Type=forking';
|
|
||||||
echo '';
|
echo '';
|
||||||
echo '[Install]';
|
echo '[Install]';
|
||||||
echo 'WantedBy=multi-user.target'; } > /etc/systemd/system/inadyn.service
|
echo 'WantedBy=multi-user.target'; } > /etc/systemd/system/inadyn.service
|
||||||
|
|
Loading…
Reference in New Issue