This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
lynxis lazus gerrit-no-reply at lists.osmocom.orglynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/9447 Change subject: ansible: udhcpd: add systemd service file ...................................................................... ansible: udhcpd: add systemd service file The udhcpd /etc/init.d/ script is racy and fails often. Change-Id: Ie373119a902a001f093599e289cadb8b2d290668 Fixes: OS#3311 --- A ansible/roles/udhcpd/files/udhcpd.service M ansible/roles/udhcpd/tasks/main.yml 2 files changed, 30 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/47/9447/1 diff --git a/ansible/roles/udhcpd/files/udhcpd.service b/ansible/roles/udhcpd/files/udhcpd.service new file mode 100644 index 0000000..03c34c1 --- /dev/null +++ b/ansible/roles/udhcpd/files/udhcpd.service @@ -0,0 +1,13 @@ +[Unit] +Description=udhcpcd DHCP server +After=network-online.target +Wants=network-online.target + +[Service] +ExecStart=/usr/sbin/udhcpd -f +RestartSec=5 +Restart=always + +[Install] +WantedBy=multi-user.target + diff --git a/ansible/roles/udhcpd/tasks/main.yml b/ansible/roles/udhcpd/tasks/main.yml index 280a5ef..e444684 100644 --- a/ansible/roles/udhcpd/tasks/main.yml +++ b/ansible/roles/udhcpd/tasks/main.yml @@ -12,3 +12,20 @@ template: src: etc/udhcpd.conf dest: /etc/udhcpd.conf + +- name: copy systemd unit file + copy: + src: udhcpd.service + dest: /lib/systemd/system/udhcpd.service + register: udhcpdservice + +- name: systemctl daemon-reload + systemd: + daemon_reload: yes + when: udhcpdservice | changed + +- name: ensure the systemd service is installed + systemd: + name: udhcpd.service + state: started + enabled: yes -- To view, visit https://gerrit.osmocom.org/9447 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Ie373119a902a001f093599e289cadb8b2d290668 Gerrit-Change-Number: 9447 Gerrit-PatchSet: 1 Gerrit-Owner: lynxis lazus <lynxis at fe80.eu> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180605/1a0daff2/attachment.htm>