--- /dev/null
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(ISU C)
+
+INSTALL(FILES isu.cfg DESTINATION /etc/isu/resourced/ PERMISSIONS OWNER_WRITE OWNER_READ)
+INSTALL(FILES resourced.service DESTINATION /etc/isu/resourced/system-services/ PERMISSIONS OWNER_WRITE OWNER_READ WORLD_READ)
+INSTALL(FILES etc-resourced.mount DESTINATION /etc/isu/resourced/system-services/ PERMISSIONS OWNER_WRITE OWNER_READ WORLD_READ)
--- /dev/null
+[Unit]
+Before=local-fs.target
+ConditionPathIsMountPoint=!/etc/resourced
+
+[Mount]
+What=#ISU_RUN_PATH#/resourced/rootfs/etc/resourced
+Where=/etc/resourced
+Options=defaults,relatime,bind,ro
+
--- /dev/null
+[Unit]
+Description=Resource management daemon
+# resourced monitors AUL (lauchpad) d-bus signals to learn about existence
+# and the state of applications. Consequently, it has to start before
+# launchpad to have knowledge of all applications. The Before= line below
+# refers to user-sessions, because tlm, and consequently user@.service
+# starts after user-sessions are allowed.
+After=etc-resourced.mount
+Before=systemd-user-sessions.service
+BindsTo=etc-resourced.mount
+DefaultDependencies=no
+Requires=resourced.socket
+
+[Service]
+Type=simple
+SmackProcessLabel=System
+ExecStart=#ISU_RUN_PATH#/resourced/rootfs/usr/bin/resourced
+MemoryLimit=50M
+Restart=on-failure
+RestartSec=0
+
+[Install]
+WantedBy=multi-user.target