Sisyphus repository
Last update: 16 october 2019 | SRPMs: 17499 | Visits: 15278176
en ru br
ALT Linux repos
S:1.0-alt2

Group :: System/Configuration/Boot and Init
RPM: servicectl

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: servicectl
Version: 1.0
Release: alt2

Summary: Control systemd services in chroot environment
License: GPL
Group: System/Configuration/Boot and Init

Url: https://github.com/smaknsk/servicectl
Source: %name-%version.tar
Packager: Michael Shigorin <mike at altlinux.org>

BuildArch: noarch

%define servicedir %_sysconfdir/servicectl

%description
Servicectl is a shell script to start/stop services on linux hosts
using systemd in chroot and SysVinit outside the chroot environment.
It uses systemd service files, e.g. nginx.service.

%prep
%setup
sed -i -e 's,^\(SYSTEMD_UNITS_PATH=\).*,\1/lib/systemd/system/,' \
      -e 's,^DIR=.*$,DIR=%servicedir,' servicectl serviced

%build

%install
install -pDm755 servicectl %buildroot%_sbindir/servicectl
install -pDm755 serviced   %buildroot%_sbindir/serviced
mkdir -p %buildroot%servicedir/enabled

%files
%servicedir/enabled
%_sbindir/*
%doc README*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin