summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorJiwoong Im <jiwoong.im@samsung.com>2017-07-05 13:35:03 +0900
committerInkyun Kil <inkyun.kil@samsung.com>2018-06-21 01:17:22 +0000
commit0568761fefcd3c8fc1fee8730e360defba161084 (patch)
tree948f7248accbcc0d88d2329f9f488539ef7e43d4 /packaging
parent8e1f75595f1bc12e7dffd6378445cfdb247ce496 (diff)
downloadbuxton2-0568761fefcd3c8fc1fee8730e360defba161084.tar.gz
buxton2-0568761fefcd3c8fc1fee8730e360defba161084.tar.bz2
buxton2-0568761fefcd3c8fc1fee8730e360defba161084.zip
Modify buxton2 systemd service file
- For boot optimization, modify buxton2 service file. Change-Id: I45799f72fc3514a5d8da70c79a4a3d3bc652a995 Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/buxton2.service5
-rw-r--r--packaging/buxton2.spec4
2 files changed, 7 insertions, 2 deletions
diff --git a/packaging/buxton2.service b/packaging/buxton2.service
index 6a48606..13d73e1 100644
--- a/packaging/buxton2.service
+++ b/packaging/buxton2.service
@@ -1,6 +1,7 @@
[Unit]
Description=Buxton2 Configuration Service
-After=systemd-tmpfiles-setup.service
+DefaultDependencies=no
+After=systemd-tmpfiles-setup.service buxton2.socket cynara.socket
[Service]
SmackProcessLabel=System
@@ -10,4 +11,4 @@ Group=buxton
LimitNOFILE=16384
[Install]
-WantedBy=multi-user.target
+WantedBy=basic.target
diff --git a/packaging/buxton2.spec b/packaging/buxton2.spec
index 0d16bcb..0b2b610 100644
--- a/packaging/buxton2.spec
+++ b/packaging/buxton2.spec
@@ -136,6 +136,9 @@ install -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.socket
install -m 755 -d %{buildroot}%{_tmpfilesdir}
install -m 644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf
+install -m 755 -d %{buildroot}%{_unitdir}/basic.target.wants
+ln -sf ../%{name}.service %{buildroot}%{_unitdir}/basic.target.wants/
+
# enable socket activation
install -m 755 -d %{buildroot}%{_unitdir}/sockets.target.wants
ln -sf ../%{name}.socket %{buildroot}%{_unitdir}/sockets.target.wants/
@@ -190,6 +193,7 @@ chsmack -a System %{dbdir}/*
%{_unitdir}/%{name}.socket
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/sockets.target.wants/%{name}.socket
+%{_unitdir}/basic.target.wants/%{name}.service
%attr(0700,buxton,buxton) %dir %{_localstatedir}/lib/%{name}
%attr(0700,buxton,buxton) %dir %{basedbdir}
%attr(0750,root,root) %{upgrade_script_path}/299.buxton2_upgrade.sh