Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
650
Issues
650
List
Boards
Labels
Service Desk
Milestones
Merge Requests
169
Merge Requests
169
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
a40b0c51
Commit
a40b0c51
authored
Apr 08, 2009
by
Michael Mason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unstable/ucarp Updated confd initd
parent
4ec779ee
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
unstable/ucarp/APKBUILD
unstable/ucarp/APKBUILD
+2
-2
unstable/ucarp/ucarp.confd
unstable/ucarp/ucarp.confd
+3
-0
unstable/ucarp/ucarp.initd
unstable/ucarp/ucarp.initd
+3
-2
No files found.
unstable/ucarp/APKBUILD
View file @
a40b0c51
...
...
@@ -29,5 +29,5 @@ build() {
}
md5sums
=
"ba585233e73f0dbce80427d04f431048 ucarp-1.5.tar.gz
fae5ca64ed20a9346b00e9c9411a43c
8 ucarp.initd
ffdbc07da100b4882cc5da9121c0c842
ucarp.confd"
e8f1e2fd144797524025343603dbe2b
8 ucarp.initd
bf914f6ce4fe4fea33a45d4d5b2c1fff
ucarp.confd"
unstable/ucarp/ucarp.confd
View file @
a40b0c51
...
...
@@ -3,8 +3,11 @@
# VHID - Virtual Server ID
# VIP - The Virtual IP
# PASSWORD - The password for the carp announcements
# EXTRA_ARGS - extra arguments
REALIP=
VHID=2
VIP=127.0.0.1
PASSWORD=SecretPassword
#EXTRA_ARGS="--neutral --advbase=3"
unstable/ucarp/ucarp.initd
100644 → 100755
View file @
a40b0c51
...
...
@@ -11,7 +11,7 @@ IFACE="${SVCNAME#*.}"
if [ -n "$IFACE" ] && [ "${SVCNAME}" != "ucarp" ]; then
UP="/etc/ucarp/vip-up-$IFACE.sh"
DOWN="/etc/ucarp/vip-down-$IFACE.sh"
. /etc/
ucarp/$IFACE.conf
. /etc/
conf.d/ucarp.$IFACE
else
UP="/etc/ucarp/vip-up.sh"
DOWN="/etc/ucarp/vip-down.sh"
...
...
@@ -35,7 +35,7 @@ start () {
start-stop-daemon --start --exec $DAEMON \
--background -m -p /var/run/ucarp-$IFACE.pid -- \
-i $IFACE -s $REALIP -v $VHID -p $PASSWORD -a $VIP \
-u $UP -d $DOWN -z
-u $UP -d $DOWN
$EXTRA_ARGS
-z
eend $?
}
...
...
@@ -60,3 +60,4 @@ stop () {
[ $? -eq 0 ] && rm /var/run/ucarp-$IFACE.pid
eend $?
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment