Package: libdlm3
Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, systemd
Conflicts: libdlmcontrol3
Description: Distributed lock manager
DLM is a symmetric general-purpose distributed lock manager. It is used
--- /dev/null
+[Unit]
+Description=dlm control daemon
+After=network.target corosync.service sys-kernel-config.mount
+
+[Service]
+OOMScoreAdjust=-1000
+Type=notify
+NotifyAccess=main
+EnvironmentFile=-/etc/default/dlm
+ExecStartPre=/sbin/modprobe dlm
+ExecStart=/usr/sbin/dlm_controld --foreground $DLM_CONTROLD_OPTS
+#ExecStopPost=/sbin/modprobe -r dlm
+
+[Install]
+WantedBy=multi-user.target
+
include /usr/share/dpkg/default.mk
%:
- dh $@ --with=quilt
+ dh $@ --with=quilt,systemd
+
+
+override_dh_systemd_enable:
+ dh_systemd_enable -plibdlm3 --name dlm