This patch disables the "-d" option for systemd, nether 94/52594/1 accepted/tizen/ivi/20160218.023857 accepted/tizen/mobile/20160125.011644 accepted/tizen/tv/20160125.011651 accepted/tizen/wearable/20160125.011655 submit/tizen/20160122.121634 submit/tizen_common/20160122.121757 submit/tizen_common/20160218.142243 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000003
authorr.kubiak <r.kubiak@samsung.com>
Tue, 24 Nov 2015 13:28:58 +0000 (14:28 +0100)
committerr.kubiak <r.kubiak@samsung.com>
Tue, 24 Nov 2015 13:30:04 +0000 (14:30 +0100)
does not fork into background and systemd is keeping
nether alive.

Change-Id: I1674e27919694773814104c0f0045a7ee3d21694

conf/systemd/nether.service [new file with mode: 0644]

diff --git a/conf/systemd/nether.service b/conf/systemd/nether.service
new file mode 100644 (file)
index 0000000..1444236
--- /dev/null
@@ -0,0 +1,29 @@
+#
+#  Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+#
+#  Contact: Roman Kubiak (r.kubiak@samsung.com)
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License
+#
+
+[Unit]
+Description=nether service
+
+[Service]
+Type=simple
+ExecStart=/usr/local/bin/nether -l JOURNAL -B /etc/nether/nether.policy -r /etc/nether/nether.rules
+Restart=on-failure
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target