[rpm] specify absolute path of harmony in unit file

Signed-off-by: Leo Chen <leo@harmony.one>
pull/3309/head
Leo Chen 4 years ago
parent eb3115b374
commit 7218ca135e
  1. 2
      scripts/rpm/harmony.service
  2. 4
      scripts/rpm/harmony.spec

@ -8,7 +8,7 @@ Restart=on-failure
RestartSec=1 RestartSec=1
User=harmony User=harmony
WorkingDirectory=/home/harmony WorkingDirectory=/home/harmony
ExecStart=harmony -c /etc/harmony/harmony.cfg ExecStart=/usr/local/sbin/harmony -c /etc/harmony/harmony.cfg
StandardError=syslog StandardError=syslog
SyslogIdentifier=harmony SyslogIdentifier=harmony
StartLimitInterval=0 StartLimitInterval=0

@ -14,12 +14,10 @@ URL: https://harmony.one
Source0: %{name}-%{version}.tar Source0: %{name}-%{version}.tar
BuildArch: x86_64 BuildArch: x86_64
Packager: Leo Chen Packager: Leo Chen
Provides: /bin/sh
Requires(pre): shadow-utils Requires(pre): shadow-utils
Requires: bash
Requires: systemd-rpm-macros Requires: systemd-rpm-macros
BuildRequires: info
Requires: info
BuildRoot: ~/rpmbuild/ BuildRoot: ~/rpmbuild/
%description %description

Loading…
Cancel
Save