diff options
author | Dariusz Michaluk <d.michaluk@samsung.com> | 2013-05-22 10:42:41 +0200 |
---|---|---|
committer | Dariusz Michaluk <d.michaluk@samsung.com> | 2013-06-06 14:46:42 +0200 |
commit | a4f7c6920c024d37b8aaf20d9048a5a5666229bd (patch) | |
tree | 04ff602b56ef94a37fb43508a18f55f928ea1a7b /systemd | |
parent | 6f4e661192f57cde2a5302f9b74193328e1f8a10 (diff) | |
download | starter-a4f7c6920c024d37b8aaf20d9048a5a5666229bd.tar.gz starter-a4f7c6920c024d37b8aaf20d9048a5a5666229bd.tar.bz2 starter-a4f7c6920c024d37b8aaf20d9048a5a5666229bd.zip |
Convert to systemd API
-enable socket activation,
-enable sd_notify (start-up completion notification),
-build package changes.
Change-Id: I39f3ce485cad4131252f58aa34949befd642bc1d
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/starter.path | 5 | ||||
-rw-r--r-- | systemd/starter.service | 12 | ||||
-rw-r--r-- | systemd/starter.socket | 6 |
3 files changed, 23 insertions, 0 deletions
diff --git a/systemd/starter.path b/systemd/starter.path new file mode 100644 index 0000000..724239c --- /dev/null +++ b/systemd/starter.path @@ -0,0 +1,5 @@ +[Unit] +Description=Path activation for the "starter" programme + +[Path] +PathExists=/tmp/amd_ready diff --git a/systemd/starter.service b/systemd/starter.service new file mode 100644 index 0000000..63d0e3f --- /dev/null +++ b/systemd/starter.service @@ -0,0 +1,12 @@ +[Unit] +Description=Start the "starter" program +Before=core-efl.target +After=boot-animation.service + +[Service] +ExecStart=/usr/bin/starter +Restart=always +RestartSec=3 + +[Install] +WantedBy=core-efl.target diff --git a/systemd/starter.socket b/systemd/starter.socket new file mode 100644 index 0000000..871d9d3 --- /dev/null +++ b/systemd/starter.socket @@ -0,0 +1,6 @@ +[Socket] +ListenStream=/tmp/phlock +SocketMode=0777 + +[Install] +WantedBy=sockets.target |