From: Geunsik Lim Date: Mon, 24 Apr 2017 01:13:47 +0000 (+0900) Subject: [tic-core] systemd: service file for systemd at boot time X-Git-Tag: v20170428~5^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0ef33635b6d6a3acdca671f32f22c8ce858a02b;p=archive%2F20170607%2Ftools%2Ftic-core.git [tic-core] systemd: service file for systemd at boot time * How to enable a service file u16.04$> sudo cp ./systemd/tic-core.service /lib/systemd/systemd u16.04$> systemctl enable tic-core.service u16.04$> systemctl start tic-core.service u16.04$> systemctl status tic-core.service u16.04$> journalctl -u tic-core.service Change-Id: I10b9bdd9604338821329cb574efdfe4cfab0f360 Signed-off-by: Geunsik Lim --- diff --git a/systemd/tic-core.service b/systemd/tic-core.service new file mode 100644 index 0000000..4002452 --- /dev/null +++ b/systemd/tic-core.service @@ -0,0 +1,15 @@ +[Unit] +Description=Tizen Image Creator (TIC) - Core +After=network.target + +[Service] +EnvironmentFile=/etc/profile +Type=simple +User=score +Group=score +ExecStart=/usr/local/bin/tic-core start +ExecReload=/bin/kill -HUP $MAINPID +StandardOutput=tty+journal+console + +[Install] +WantedBy=multi-user.target diff --git a/systemd/tic-core.sh b/systemd/tic-core.sh new file mode 100755 index 0000000..f363604 --- /dev/null +++ b/systemd/tic-core.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# Default port is 8082 +# /usr/local/bin/tic-core start --port=8082 +/usr/local/bin/tic-core start