code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
modprobe nbd
./bin/nbd-server 2000 local:///tmp/testenv
| Shell |
#!/bin/bash
./bin/nbd-client bs=512 127.0.0.1 2000 testfs /dev/nbd0 100
mkfs /dev/nbd0
mount /dev/nbd0 /root/nbd0
| Shell |
#!/bin/bash
./bin/nbd-client bs=512 127.0.0.1 2000 testfs /dev/nbd0 100
mkfs /dev/nbd0
mount /dev/nbd0 /root/nbd0
| Shell |
#!/bin/bash
rm -r CMakeFiles/ CMakeCache.txt cmake_install.cmake Makefile
| Shell |
#!/bin/bash
../output/bin/mkfs.hlfs -l local:///tmp/test3env/ -f test3fs -s 67108864 -b 8192
| Shell |
#!/bin/bash
../output/bin/mkfs.hlfs -l local:///tmp/test3env/ -f test3fs -s 67108864 -b 8192
| Shell |
#!/bin/bash
rm -r CMakeFiles/ CMakeCache.txt cmake_install.cmake Makefile
| Shell |
#!/bin/bash
modprobe nbd
./bin/nbd-server 2000 local:///tmp/testenv
| Shell |
#!/bin/bash
modprobe nbd
./bin/nbd-server 2000 local:///tmp/testenv
| Shell |
#!/bin/bash
./bin/nbd-client bs=512 127.0.0.1 2000 testfs /dev/nbd0 100
mkfs /dev/nbd0
mount /dev/nbd0 /root/nbd0
| Shell |
#!/bin/bash
./bin/nbd-client bs=512 127.0.0.1 2000 testfs /dev/nbd0 100
mkfs /dev/nbd0
mount /dev/nbd0 /root/nbd0
| Shell |
#!/bin/bash
# you should extrace these info form your system
#echo "node2@127.0.0.1 192.168.11.129 2 1000 1000 500 500"
#hostname=`hostname`
hostname="node2@127.0.0.1"
ip=`ifconfig eth0|grep inet|sed -n '1p'|awk '{print $2}'|cut -c6-21`
tmem=`(xm info|grep total_memory|awk '{print $3}') 2>/dev/null`
fmem=`(xm info|grep... | Shell |
#!/bin/bash
# argument:vmid
# This script is used for shutdown a VM
VMID=$1
VM_destroy()
{
# echo -e "\nOK..Let's shutdown this VM \n"
sleep 2s
xm destroy $VMID >> /dev/null 2>/dev/null
if [ $? -eq 0 ] ; then
echo "SUCC"
else
echo "FAIL"
fi
}
VM_destroy
| Shell |
#!/bin/bash
#vm name
##Vm_id,VcpuCount,MemSize,DiskSize,Ipaddr,VncPort,VncPass,Passwd
#Vm_id=$1
name=$1
VcpuCount=$2
MemSize=$3
DiskSize=$4
Ipaddr=$5
VncPort=$6
VncPass=$7
passwd=$8
#name=`xl list | awk '{print $1,$2}' | grep $Vm_id | awk '{print $1}'`
Vm_id=`xl list | grep $name | awk '{print $2}'`
#创建iso
mkdir /tm... | Shell |
#!/bin/bash
#argument: vmid
# This script is used for shutdown a VM
name=$1
VM_shutdown()
{
# echo -e "\nOK..Let's shutdown this VM \n"
sleep 2s
xm shutdown $name >> /dev/null 2>/dev/null
if [ $? -eq 0 ] ; then
echo "SUCC"
else
echo "FAIL"
fi
}
VM_shutdown
| Shell |
#!/bin/bash
# argument:vmid
# This script is used for shutdown a VM
VMID=$1
VM_destroy()
{
# echo -e "\nOK..Let's shutdown this VM \n"
sleep 2s
xm destroy $VMID >> /dev/null 2>/dev/null
if [ $? -eq 0 ] ; then
echo "SUCC"
else
echo "FAIL"
fi
}
VM_destroy
| Shell |
#!/bin/bash
## update time 2011-7-26
## VcpuCount,MemSize,DiskSize,IpAddr,MacAddr,VncPass,VncPort,VmUser,VmUserPass,VmI
## argument 2 64 64 "192.168.3.120" "11:22:33:44:55:66" 123456 5901 jiangang 123456 1
NUM=$#
so_config='/Xen/iso/'
if [ $NUM != 10 ];then
echo "FAIL"
exit 1
fi
VMVCPU=$1
VMMEM=$2
VMD... | Shell |
#!/bin/bash
# you should extrace these info form your system
#echo "node2@127.0.0.1 192.168.11.129 2 1000 1000 500 500"
#hostname=`hostname`
hostname="node2@127.0.0.1"
ip=`ifconfig eth0|grep inet|sed -n '1p'|awk '{print $2}'|cut -c6-21`
tmem=`(xm info|grep total_memory|awk '{print $3}') 2>/dev/null`
fmem=`(xm info|grep... | Shell |
#!/bin/bash
#vm name
##Vm_id,VcpuCount,MemSize,DiskSize,Ipaddr,VncPort,VncPass,Passwd
#Vm_id=$1
name=$1
VcpuCount=$2
MemSize=$3
DiskSize=$4
Ipaddr=$5
VncPort=$6
VncPass=$7
passwd=$8
#name=`xl list | awk '{print $1,$2}' | grep $Vm_id | awk '{print $1}'`
Vm_id=`xl list | grep $name | awk '{print $2}'`
#创建iso
mkdir /tm... | Shell |
#!/bin/bash
## update time 2011-7-26
## VcpuCount,MemSize,DiskSize,IpAddr,MacAddr,VncPass,VncPort,VmUser,VmUserPass,VmI
## argument 2 64 64 "192.168.3.120" "11:22:33:44:55:66" 123456 5901 jiangang 123456 1
NUM=$#
so_config='/Xen/iso/'
if [ $NUM != 10 ];then
echo "FAIL"
exit 1
fi
VMVCPU=$1
VMMEM=$2
VMD... | Shell |
#!/bin/bash
#argument: vmid
# This script is used for shutdown a VM
name=$1
VM_shutdown()
{
# echo -e "\nOK..Let's shutdown this VM \n"
sleep 2s
xm shutdown $name >> /dev/null 2>/dev/null
if [ $? -eq 0 ] ; then
echo "SUCC"
else
echo "FAIL"
fi
}
VM_shutdown
| Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/bin/sh
check_for_app() {
$1 --version 2>&1 >/dev/null
if [ $? != 0 ]
then
echo "Please install $1 and run bootstrap.sh again!"
exit 1
fi
}
# On FreeBSD, multiple autoconf/automake versions have different names.
# On linux, envitonment variables tell which one to use.
uname -s | grep -q FreeBSD
if [ $? = 0... | Shell |
#!/bin/sh
# Read data from /proc/meminfo on linux and report back in the xymon client
# It's more compatable across more versions that running 'vmstat -s'
test -f /proc/meminfo && exec cat /proc/meminfo
| Shell |
#!/bin/sh
# logfetchupdate
#
# Connect to one/any of the xymon servers and attempt to download an updated copy
# of our logfetch config file.
#
test -z "$XYMONTMP" && echo "ERROR: xymon environment not present" >&2 && exit -1
test "$STATUSMODE" != "yes" && exit 0
# Allow an override of the "standard" XYMSRV entry... | Shell |
#!/bin/sh
#----------------------------------------------------------------------------#
# Xymon client init.d script. #
# #
# This invokes xymonlaunch, which in turn starts all of the other Xymon ... | Shell |
#!/bin/sh
# Report visible SysV/IPC details
ipcs -u 2>/dev/null
ipcs 2>/dev/null
| Shell |
#!/bin/sh
# Read data from /proc/mounts on linux and report back in the xymon client
# It gives more accurate data than the 'mount' command and can catch
# disks in a read-only state.
test -r /proc/mounts && exec cat /proc/mounts
| Shell |
#!/bin/sh
# Gather some data from vmstat -s
# Not available on really old Linux (procps before 3.1.2)
exec vmstat -s 2>/dev/null
| Shell |
#!/bin/sh
#----------------------------------------------------------------------------#
# Xymon init.d script. #
# #
# This invokes xymonlaunch, which in turn starts all of the other Xymon ... | Shell |
#!/bin/sh
# Xymon data collector for MQ
#
#
# Collect data from the MQ utility "runmqsc":
# - queue depth
# - channel status
# for all of the queue managers given as parameters.
#
# Wrap this in a client data message, tagged as
# coming from an "mqcollect" client collector.
#
# Requires Xymon server ver.... | Shell |
#!/bin/sh
#----------------------------------------------------------------------------#
# SCO_SV client for Xymon #
# #
# Copyright (C) 2005-2011 Henrik Storner <henrik@hswn.dk> ... | Shell |
#!/bin/sh
#----------------------------------------------------------------------------#
# OSF1 client for Xymon #
# #
# Copyright (C) 2005-2011 Henrik Storner <henrik@hswn.dk> ... | Shell |
#!/bin/sh
#----------------------------------------------------------------------------#
# NetBSD client for Xymon #
# #
# Copyright (C) 2005-2011 Henrik Storner <henrik@hswn.dk> ... | Shell |
#!/bin/sh
#----------------------------------------------------------------------------#
# Irix client for Xymon #
# #
# Copyright (C) 2005-2011 Henrik Storner <henrik@hswn.dk> ... | Shell |
#!/bin/sh
#----------------------------------------------------------------------------#
# Linux client for Xymon #
# #
# Copyright (C) 2005-2011 Henrik Storner <henrik@hswn.dk> ... | Shell |
#!/bin/sh
#----------------------------------------------------------------------------#
# Xymon client main script. #
# #
# This invokes the OS-specific script to build a client message, and send... | Shell |
#!/bin/sh
#
#----------------------------------------------------------------------------#
# Darwin (Mac OS X) client for Xymon #
# #
# Copyright (C) 2005-2011 Henrik Storner <henrik@hswn.dk> ... | Shell |
#!/bin/sh
#
#----------------------------------------------------------------------------#
# FreeBSD client for Xymon #
# #
# Copyright (C) 2005-2011 Henrik Storner <henrik@hswn.dk> ... | Shell |
#!/bin/sh
#
#----------------------------------------------------------------------------#
# HP-UX client for Xymon #
# #
# Copyright (C) 2005-2011 Henrik Storner <henrik@hswn.dk> ... | Shell |
#!/bin/sh
#----------------------------------------------------------------------------#
# AIX client for Xymon #
# #
# Copyright (C) 2005-2011 Henrik Storner <henrik@hswn.dk> ... | Shell |
#!/bin/sh
#----------------------------------------------------------------------------#
# OpenBSD client for Xymon #
# #
# Copyright (C) 2005-2011 Henrik Storner <henrik@hswn.dk> ... | Shell |
#!/bin/sh
#----------------------------------------------------------------------------#
# Solaris client for Xymon #
# #
# Copyright (C) 2005-2011 Henrik Storner <henrik@hswn.dk> ... | Shell |
#!/bin/sh
#----------------------------------------------------------------------------#
# SCO Unixware client for Xymon #
# #
# Copyright (C) 2005-2011 Henrik Storner <henrik@hswn.dk> ... | Shell |
#!/bin/sh
#----------------------------------------------------------------------------#
# Xymon client bootup script. #
# #
# This invokes xymonlaunch, which in turn runs the Xymon client and any ... | Shell |
#! /bin/sh
#
# xymon-client This shell script takes care of starting and stopping
# the Xymon client.
#
# chkconfig: 2345 80 20
# description: Xymon is a network monitoring tool that allows \
# you to monitor hosts and services. This client reports local \
# system statistics (cpu-, memory-, disk-uti... | Shell |
#! /bin/sh
#
# xymon This shell script takes care of starting and stopping
# xymon (the Xymon network monitor)
#
# chkconfig: 2345 80 20
# description: Xymon is a network monitoring tool that allows \
# you to monitor hosts and services. The monitor status is available \
# via a webpage.
PAT... | Shell |
#!/bin/bash
# Pre-generate periodic Xymon reports
#
# This would typically run via cron and xymoncmd. A sample crontab
# to generate daily, weekly and monthly reports would be:
#
# 10 0 * * * @XYMONHOME@/bin/xymoncmd --env=@XYMONHOME@/etc/xymonserver.cfg xymonreports.sh daily
# 10 1 * * 1 @XYMONHOME@/bin/xymon... | Shell |
#!/bin/sh
# This script moves or copies rrd files from the flat "all files
# in a single directory" structure used by the traditional LARRD
# tool, to the "one directory per host" structure used by Xymon
# You need to run this tool once, to migrate your RRD files and
# historical data to Xymon.
#
# Set these variable... | Shell |
#!/bin/sh
# Startup script for Xymon
#
# This starts the "xymonlaunch" tool, which in turn starts
# all of the other Xymon server programs.
case "`uname -s`" in
"SunOS")
ID=/usr/xpg4/bin/id
;;
*)
ID=id
;;
esac
if test `$ID -un` != @XYMONUSER@
then
echo "Xymon must be started as the @XYMONUSER@ user"... | Shell |
#!/bin/sh
# Configure script for Xymon CLIENT
# $Id: configure.client 7044 2012-07-13 16:53:23Z storner $
echo ""
echo "Configuration script for Xymon client"
echo ""
if test -r Makefile
then
echo "Already configured - remove Makefile to re-configure"
exit 1
fi
echo "This script asks a few questions and builds a ... | Shell |
#!/bin/sh
# This is the Xymon CGI script interface to findhost.CGI
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/findhost.cgi $CGI_FINDHOST_OPTS
| Shell |
#!/bin/sh
# This is the Xymon CGI script to display the top-N changing hosts/statuses
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/eventlog.cgi $CGI_TOPCHANGE_OPTS
| Shell |
#!/bin/sh
# This is the Xymon wrapper for the acknowledge CGI
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/acknowledge.cgi $CGI_ACK_OPTS
| Shell |
#!/bin/sh
# This is the Xymon wrapper for the history.cgi tool
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/history.cgi $CGI_HIST_OPTS
| Shell |
#!/bin/sh
# This is a wrapper for the Xymon perfdata.cgi script
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/perfdata.cgi $CGI_PERFDATA_OPTS
| Shell |
#!/bin/sh
# This is the Xymon CGI script interface to showgraph.cgi
#
# Install this script in your webservers' cgi-bin directory
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/showgraph.cgi $CGI_SHOWGRAPH_OPTS
| Shell |
#!/bin/sh
# This is the Xymon wrapper for the reportlog.cgi tool.
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/reportlog.cgi $CGI_REPLOG_OPTS
| Shell |
#!/bin/sh
# This is the Xymon wrapper for the hostlist CGI
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/hostlist.cgi $CGI_HOSTLIST_OPTS
| Shell |
#!/bin/sh
# This is the Xymon snapshot CGI wrapper
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/snapshot.cgi $CGI_SNAPSHOT_OPTS $XYMONGENSNAPOPTS
| Shell |
#!/bin/sh
QS="${QUERY_STRING}"
QUERY_STRING="db=columndoc.csv&key=${QS}"
export QUERY_STRING
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/csvinfo.cgi $CGI_COLUMNDOC_OPTS
| Shell |
#!/bin/sh
# This is a wrapper for the Xymon enadis script
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/enadis.cgi $CGI_ENADIS_OPTS
| Shell |
#!/bin/sh
# This is a wrapper for the Xymon criticaleditor.cgi script
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/criticaleditor.cgi $CGI_CRITEDIT_OPTS
| Shell |
#!/bin/sh
# This is a wrapper for the Xymon svcstatus.cgi script
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/svcstatus.cgi $CGI_SVC_OPTS
| Shell |
#!/bin/sh
# This is a wrapper for the Xymon useradm.cgi script
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/useradm.cgi $CGI_USERADM_OPTS
| Shell |
#!/bin/sh
# This is the Xymon CGI wrapper for the csvinfo.cgi program.
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/csvinfo.cgi $CGI_CSVINFO_OPTS
| Shell |
#!/bin/sh
# This is the Xymon wrapper for the hostgraphs CGI
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/hostgraphs.cgi $CGI_HOSTGRAPHS_OPTS
| Shell |
#!/bin/sh
# This is the Xymon wrapper for the ghostlist CGI
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/ghostlist.cgi $CGI_GHOSTS_OPTS
| Shell |
#!/bin/sh
# This is the Xymon CGI script interface to confreport.cgi
# It shows only the statuses on the Critical systems view
#
# Install this script in your webservers' cgi-bin directory
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/confreport.cgi $CGI_CONFREPORT_OPTS --critical
| Shell |
#!/bin/sh
# This is a wrapper for the Xymon appfeed.cgi script
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/appfeed.cgi --critical=@XYMONHOME@/etc/critical.cfg $CGI_APPFEED_OPTS
| Shell |
#!/bin/sh
# This is a wrapper for the Xymon criticalview.cgi script
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/criticalview.cgi $CGI_CRITVIEW_OPTS
| Shell |
#!/bin/sh
# This is the Xymon CGI script to display the eventlog
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/eventlog.cgi $CGI_EVENTLOG_OPTS
| Shell |
#!/bin/sh
# This is an example of using the Xymon statusreport.cgi tool.
# Through the options, it generates a report of the currently
# about-to-expire SSL certificates.
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/statusreport.cgi --column=sslcert --filter=color=red,yellow --all --no-colors
| Shell |
#!/bin/sh
# This it the Xymon wrapper for the report.cgi tool
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/report.cgi $CGI_REP_OPTS $XYMONGENREPOPTS
| Shell |
#!/bin/sh
# This is the Xymon CGI script interface to confreport.cgi
#
# Install this script in your webservers' cgi-bin directory
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/confreport.cgi $CGI_CONFREPORT_OPTS
| Shell |
#!/bin/sh
# This is a wrapper for the Xymon appfeed.cgi script
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/appfeed.cgi $CGI_APPFEED_OPTS
| Shell |
#!/bin/sh
# This is a wrapper for the Xymon ackinfo.cgi script
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/ackinfo.cgi $CGI_ACKINFO_OPTS
| Shell |
#!/bin/sh
# This is the wrapper for svcstatus.cgi when viewing a
# a historical logfile.
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/svcstatus.cgi $CGI_SVCHIST_OPTS --historical
| Shell |
#!/bin/sh
# This is the Xymon CGI script to select a pre-generated report.
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/datepage.cgi $CGI_DATEPAGE_OPTS
| Shell |
#!/bin/sh
# This uses the statusreport.cgi to provide a list
# of all non-green statuses with a brief summary of what is wrong.
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/statusreport.cgi \
--filter="color=red,yellow" --all \
--heading="All non-green systems" \
--show-column \
--show-sum... | Shell |
#!/bin/sh
# This is the Xymon wrapper for the notifications CGI
. @XYMONHOME@/etc/cgioptions.cfg
@RUNTIMEDEFS@ exec @XYMONHOME@/bin/notifications.cgi $CGI_NOTIFYLOG_OPTS
| Shell |
#! /bin/sh
# preinst script for Xymon
set -e
case "$1" in
install|upgrade)
# stop the client when the server is installed
invoke-rc.d xymon stop || true
if test "$2" && dpkg --compare-versions "$2" lt 4.2.0.dfsg-2 &&
test -d /var/lib/xymon/www ; then
if test -e /etc/logrotate.d/xymon-client && ! test -e /... | Shell |
#!/bin/sh
CONFIGFILE=/etc/default/xymon-client
set -e
. /usr/share/debconf/confmodule
if [ -e $CONFIGFILE ]; then
. $CONFIGFILE || true
fi
# if there is no value configured, look for debconf answers
if [ -z "$XYMONSERVERS" ] ; then
db_get xymon-client/XYMONSERVERS
XYMONSERVERS="$RET"
fi
# still nothing? set a... | Shell |
#! /bin/sh
# postinst script for xymon
#
# see: dh_installdeb(1)
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <n... | Shell |
#! /bin/sh
# postinst script for Xymon
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# ... | Shell |
#!/bin/sh
# Startup script for the Xymon monitor
#
# This starts the "xymonlaunch" tool, which in turn starts
# all of the other Xymon server programs.
### BEGIN INIT INFO
# Provides: xymon
# Required-Start: $remote_fs $network
# Should-Start: $all
# Required-Stop: $remote_fs
# Default-Start: ... | Shell |
#! /bin/sh
#
# xymonclient This shell script takes care of starting and stopping
# the Xymon client.
### BEGIN INIT INFO
# Provides: xymon-client
# Required-Start: $remote_fs $network
# Should-Start: $all
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: ... | Shell |
#! /bin/sh
# postrm script for xymon
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# ... | Shell |
# common init functions for Xymon and Xymon-client
create_includefiles ()
{
if [ "$XYMONSERVERS" = "" ]; then
echo "Please configure XYMONSERVERS in /etc/default/xymon-client"
exit 0
fi
umask 022
if ! [ -d /var/run/xymon ] ; then
mkdir /var/run/xymon
chown xymon:xymon /var/run/xymon
fi
set -- $XYMONSE... | Shell |
#! /bin/sh
# postrm script for Xymon
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# ... | Shell |
#!/bin/sh
# Configure script for Xymon server
# $Id: configure.server 7124 2012-07-26 07:17:44Z storner $
echo ""
echo "Configuration script for Xymon"
echo ""
while test "$1" != ""
do
OPT="$1"; shift
case "$OPT" in
"--help")
cat <<EOF
To configure Xymon, the following options are available:
--rrdin... | Shell |
#!/bin/bash
rm -rf autom4te.cache configure config.h.in
| Shell |
#!/bin/sh
# Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
set -e
go build hello.go
go build fib.go
go build chain.go
echo '*' hello >run.out
./hello >>run.out
echo '*' fib >>run.out
./fib >>run.out
echo '*' ch... | Shell |
#!/bin/sh
# Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
set -e
go build hello.go
go build fib.go
go build chain.go
echo '*' hello >run.out
./hello >>run.out
echo '*' fib >>run.out
./fib >>run.out
echo '*' ch... | Shell |
#!/bin/sh
# Copyright 2010 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
set -e
go build -o life main.go
echo '*' life >run.out
./life >>run.out
diff run.out golden.out
rm -f life
| Shell |
#!/bin/sh
# Copyright 2011 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
set -e
gcc $(go env GOGCCFLAGS) -shared -o libcgosotest.so cgoso_c.c
go build main.go
LD_LIBRARY_PATH=. ./main
rm -f libcgosotest.so main
| Shell |
#!/bin/bash
autoreconf -ivf
echo ""
echo "Now run ./configure"
| Shell |
#!/bin/sh
### ====================================================================== ###
## ##
## Mobicents Media Server Bootstrap Script ##
## ... | Shell |
#!/bin/sh
### ====================================================================== ###
## ##
## Mobicents Media Server Bootstrap Script ##
## ... | Shell |
#!/bin/ksh
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it wi... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.