From e736077f0aff55461afd17cb64a0c164eef0f356 Mon Sep 17 00:00:00 2001 From: Adhavan M Date: Fri, 4 May 2018 11:34:52 +0000 Subject: [PATCH] Revert "Revert "service: Move common options to sdbd.service"" This reverts commit 6ad6a2da4ee65dfaacd41f2742da2d5ed4d868c6. Change-Id: I8c316d7575c9dafadab90889c35508b7f4e865de --- packaging/sdbd.service | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packaging/sdbd.service b/packaging/sdbd.service index eb49efe..3ec4efc 100644 --- a/packaging/sdbd.service +++ b/packaging/sdbd.service @@ -1,10 +1,16 @@ [Unit] Description=sdbd +After=tmp.mount [Service] +User=sdk +Group=sdk +SmackProcessLabel=System #If necessary, Put Environment variable settings in a file like below #ExecStartPre=/bin/bash -c "/bin/echo 'SDB_TRACE=all SDBD_LOG_PATH=/tmp' >> /tmp/.sdbdlog.conf" Type=simple +Capabilities=cap_dac_override,cap_setgid,cap_setuid,cap_sys_admin=i +SecureBits=keep-caps PIDFile=/tmp/.sdbd.pid RemainAfterExit=yes ExecStart=/usr/sbin/sdbd -- 2.7.4