FreeBSD Bugzilla – Attachment 180989 Details for
Bug 217947
[NEW PORT] sysutils/immortal: A *nix cross-platform (OS agnostic) supervisor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
immortal shar
immortal.shar (text/plain), 6.39 KB, created by
nbari
on 2017-03-20 12:30:17 UTC
(
hide
)
Description:
immortal shar
Filename:
MIME Type:
Creator:
nbari
Created:
2017-03-20 12:30:17 UTC
Size:
6.39 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># immortal ># immortal/Makefile ># immortal/distinfo ># immortal/pkg-plist ># immortal/pkg-descr ># immortal/files ># immortal/files/immortaldir.in ># immortal/files/www.yml ># >echo c - immortal >mkdir -p immortal > /dev/null 2>&1 >echo x - immortal/Makefile >sed 's/^X//' >immortal/Makefile << '7a28af42457da9fa2d3dfbdfde417c26' >X# $FreeBSD: >X >XPORTNAME= immortal >XPORTVERSION= 0.10.2 >XCATEGORIES= sysutils >X >XMAINTAINER= nbari@tequila.io >XCOMMENT= A *nix cross-platform (OS agnostic) supervisor >X >XLICENSE= BSD3CLAUSE >XLICENSE_FILE= ${WRKSRC}/LICENSE >X >XUSE_RC_SUBR= immortaldir >X >XBUILD_DEPENDS= go>=1.7:lang/go >X >XUSES= go >X >XUSE_GITHUB= yes >XGH_TUPLE= immortal:logrotate:3691ab5:logrotate/src/github.com/immortal/logrotate \ >X immortal:multiwriter:2555774:multiwriter/src/github.com/immortal/multiwriter \ >X immortal:natcasesort:69368b7:natcasesort/src/github.com/immortal/natcasesort \ >X immortal:xtime:fb1aca1:xtime/src/github.com/immortal/xtime \ >X nbari:violetear:502d8b0:nbari/src/github.com/nbari/violetear \ >X go-yaml:yaml:v2:yaml/src/gopkg.in/yaml.v2 >XGH_SUBDIR= src/github.com/${PORTNAME}/${PORTNAME} >X >XSTRIP= # stripping can break go binaries >X >Xdo-build: >X @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \ >X ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -ldflags \ >X "-X main.version=${PORTVERSION}" -o immortal cmd/immortal/main.go; >X @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \ >X ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -ldflags \ >X "-X main.version=${PORTVERSION}" -o immortalctl cmd/immortalctl/main.go; >X @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \ >X ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -ldflags \ >X "-X main.version=${PORTVERSION}" -o immortaldir cmd/immortaldir/main.go; >X >Xdo-install: >X ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/immortal/immortal/immortal ${STAGEDIR}${PREFIX}/bin/immortal >X ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/immortal/immortal/immortalctl ${STAGEDIR}${PREFIX}/bin/immortalctl >X ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/immortal/immortal/immortaldir ${STAGEDIR}${PREFIX}/bin/immortaldir >X ${INSTALL_MAN} ${WRKSRC}/src/github.com/immortal/immortal/man/*.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/ >X >Xpost-install: >X @${MKDIR} ${STAGEDIR}${ETCDIR} >X ${INSTALL_DATA} ${FILESDIR}/www.yml ${STAGEDIR}${ETCDIR}/www.yml.sample >X.include <bsd.port.mk> >7a28af42457da9fa2d3dfbdfde417c26 >echo x - immortal/distinfo >sed 's/^X//' >immortal/distinfo << '339916dbfd67f68ab3b95ed5b6ddd7e4' >XTIMESTAMP = 1490011379 >XSHA256 (immortal-immortal-0.10.2_GH0.tar.gz) = ff9db09bbc34f0554ef8971fc95ccbe83035e439d7796b32ad305970a1490115 >XSIZE (immortal-immortal-0.10.2_GH0.tar.gz) = 27238 >XSHA256 (immortal-logrotate-3691ab5_GH0.tar.gz) = 1e9915e41e05e43be206fa5da0ca9646feea36e8433c953fc71d7ebc6d40d8d5 >XSIZE (immortal-logrotate-3691ab5_GH0.tar.gz) = 3612 >XSHA256 (immortal-multiwriter-2555774_GH0.tar.gz) = 0988932d02debf79c7928e307a812027b642da7e5cad8846604577ed56220d57 >XSIZE (immortal-multiwriter-2555774_GH0.tar.gz) = 3060 >XSHA256 (immortal-natcasesort-69368b7_GH0.tar.gz) = d05843a6bb7429ebe0e62f34ff3e75fa19327eea810f60d335a345ea9411f9e5 >XSIZE (immortal-natcasesort-69368b7_GH0.tar.gz) = 2581 >XSHA256 (immortal-xtime-fb1aca1_GH0.tar.gz) = b6d7b321e2feca0ec66d19e4b2feea0be88fc2b7db31e43b7f68d6f74f1a2753 >XSIZE (immortal-xtime-fb1aca1_GH0.tar.gz) = 1104 >XSHA256 (nbari-violetear-502d8b0_GH0.tar.gz) = 26b1bbb59ddeb5bb82a317c6a754ab6dad0a68152612e8eaaac17f3b7dacaaf2 >XSIZE (nbari-violetear-502d8b0_GH0.tar.gz) = 16272 >XSHA256 (go-yaml-yaml-v2_GH0.tar.gz) = 4f214b08f5ad89644bec631ca47e20ba7c1474845731925f3b38d1ecca9cca67 >XSIZE (go-yaml-yaml-v2_GH0.tar.gz) = 60702 >339916dbfd67f68ab3b95ed5b6ddd7e4 >echo x - immortal/pkg-plist >sed 's/^X//' >immortal/pkg-plist << '443e4eca54376edf1c9f74c7804373f4' >Xbin/%%GO_PKGNAME%% >Xbin/%%GO_PKGNAME%%ctl >Xbin/%%GO_PKGNAME%%dir >X%%ETCDIR%%/www.yml.sample >Xman/man8/%%GO_PKGNAME%%.8.gz >Xman/man8/%%GO_PKGNAME%%ctl.8.gz >Xman/man8/%%GO_PKGNAME%%dir.8.gz >443e4eca54376edf1c9f74c7804373f4 >echo x - immortal/pkg-descr >sed 's/^X//' >immortal/pkg-descr << '497ecc0e360cb56052f58bb8ec0bd6d0' >Xâ A *nix cross-platform (OS agnostic) supervisor >X >Ximmortal runs a command or script detached from the controlling terminal >Xas a Unix daemon, it will supervise and restart the service if it has >Xbeen terminated. The service can be controlled by querying a Unix socket >X"immortal.sock", this allows to remotely have full control over the service if >Xrequired by exposing the socket using a web server like Nginx. >X >Ximmortal - Starts and monitor a service >Ximmortaldir - Directory to scan for services *.yml >Ximmortalctl - Control existing services >X >XWWW: https://immortal.run >497ecc0e360cb56052f58bb8ec0bd6d0 >echo c - immortal/files >mkdir -p immortal/files > /dev/null 2>&1 >echo x - immortal/files/immortaldir.in >sed 's/^X//' >immortal/files/immortaldir.in << '8d3c9096cda32e9565bd4618fb08614a' >X#!/bin/sh >X >X# $FreeBSD$ >X# >X# PROVIDE: immortaldir >X# REQUIRE: LOGIN >X# KEYWORD: shutdown >X# >X# Add these lines to /etc/rc.conf.local or /etc/rc.conf >X# to enable this service: >X# >X# immortaldir_enable (bool): Set it to "YES" to enable immortaldir >X# Default is "NO" >X# >X# immortaldir_path (str): Set the directory that will be scanned >X# Default is "/usr/local/etc/immortal" >X >X. /etc/rc.subr >X >Xname=immortaldir >Xrcvar=immortaldir_enable >X >Xload_rc_config $name >X >X: ${immortaldir_path=%%PREFIX%%/etc/immortal} >X >Xcommand=%%PREFIX%%/bin/${name} >Xcommand_args=${immortaldir_path} >Xstart_cmd=immortaldir_run >X >Ximmortaldir_run() >X{ >X PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" >X /usr/sbin/daemon -c /bin/sh -c "$command $immortaldir_path 2>&1 | logger -t immortaldir" >X} >X >Xrun_rc_command "$1" >8d3c9096cda32e9565bd4618fb08614a >echo x - immortal/files/www.yml >sed 's/^X//' >immortal/files/www.yml << '23b44e3ed4d8ed12ea9e238f01c5275b' >X# expose via web the /tmp directory by using www >X# pkg install go-www >Xcmd: /usr/local/bin/www >Xcwd: /tmp >Xlog: >X file: /var/log/www.log >X age: 86400 # seconds >X num: 7 # int >X size: 1 # MegaBytes >Xuser: www >23b44e3ed4d8ed12ea9e238f01c5275b >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 217947
: 180989