Skip to content

[fork] Tools for building daemontools rpm package

Notifications You must be signed in to change notification settings

snsinfu/daemontools-rpm

 
 

Repository files navigation

daemontools-rpm - Tools for building daemontools rpm package

Build Status packagecloud

This is a fork of kteru/daemontools-rpm adding support for dockerized rpmbuild. Pre-built packages for CentOS 7 are available at packagecloud.

To install daemontools package from packagecloud:

sudo curl -o /etc/yum.repos.d/daemontools.repo "https://packagecloud.io/install/repositories/sinfu/daemontools/config_file.repo?os=el&dist=7"
sudo yum update
sudo yum install daemontools

Or using Ansible:

- yum_repository:
    name: daemontools
    description: daemontools
    baseurl: https://packagecloud.io/sinfu/daemontools/el/$releasever/$basearch
    gpgkey: https://packagecloud.io/sinfu/daemontools/gpgkey
    repo_gpgcheck: yes
    gpgcheck: no

- yum:
    name: daemontools
    state: present

Supported distribution

  • RHEL/CentOS 7.x x86_64
  • RHEL/CentOS 6.x x86_64/i386
  • RHEL/CentOS 5.x x86_64/i386
  • CentOS 4.x x86_64/i386

How to use

Common

Clone daemontools-rpm

$ git clone https://github.com/kteru/daemontools-rpm.git

Get source code

$ cd /path/to/daemontools-rpm
$ wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz

RHEL/CentOS 7.x

Install requirements

$ sudo yum -y install rpm-build redhat-rpm-config make gcc

Build/Install rpm

$ cd /path/to/daemontools-rpm
$ ./buildrpm.sh
$ sudo rpm -ivh /path/to/daemontools-<VER>-<REL>.<DIST>.<ARCH>.rpm

Launch

# systemctl enable daemontools.service
# systemctl start daemontools.service

RHEL/CentOS 6.x

Install requirements

$ sudo yum -y install rpm-build redhat-rpm-config make gcc

Build/Install rpm

$ cd /path/to/daemontools-rpm
$ ./buildrpm.sh
$ sudo rpm -ivh /path/to/daemontools-<VER>-<REL>.<DIST>.<ARCH>.rpm

Launch

# initctl start daemontools

RHEL/CentOS 5.x / CentOS 4.x

Install requirements

# yum -y install rpm-build redhat-rpm-config make gcc

Build/Install rpm

# cd /path/to/daemontools-rpm
# ./buildrpm.sh
# rpm -ivh /path/to/daemontools-<VER>-<REL>.<DIST>.<ARCH>.rpm

Launch

# /usr/bin/svscanboot &
# jobs
[1]+  Running                 /usr/bin/svscanboot &
# disown %1

About

[fork] Tools for building daemontools rpm package

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%