[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
User=harmony
WorkingDirectory=/home/harmony
ExecStart=harmony -c /etc/harmony/harmony.cfg
ExecStart=/usr/local/sbin/harmony -c /etc/harmony/harmony.cfg
StandardError=syslog
SyslogIdentifier=harmony
StartLimitInterval=0

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

Loading…
Cancel
Save