#manpagemonday — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #manpagemonday, aggregated by home.social.
-
SYNOPSIS
bastille console [-ax] TARGET [USER]DESCRIPTION
The bastille console sub-command will enter a jails shell. If a user is given, it will enter as that user.EXAMPLES
Console into myjail:
# bastille console myjailConsole into myjail as bob:
# bastille console myjail bobConsole into a stopped jail as bob:
# bastille console -a myjail bob -
SYNOPSIS
bastille config [-x] set|add PROPERTY [VALUE]
bastille config [-x] get|remove PROPERTYDESCRIPTION
The bastille config sub-command will modify targeted jail(s) configuration and get, set, add or remove properties.EXAMPLES
Set allow.mlock inside myjail:
# bastille config myjail set allow.mlock 1Set to priority value of myjail:
# bastille config myjail set priority 10Set the boot value:
# bastille config myjail set boot off -
SYNOPSIS
bastille template [-ax] TARGET|convert TEMPLATEDESCRIPTION
The bastille template sub-command will apply the specified TEMPLATE to TARGET.-a, --auto : Auto mode. Start/stop jail(s) if required.
-x, --debug : Enable debug mode.
EXAMPLES
Apply www/nginx to myjail:
bastille template myjail www/nginx -
SYNOPSIS
bastille tags [-x] TARGET add|delete tag1,tag2
bastille tags [-x] TARGET list [tag]DESCRIPTION
The bastille tags sub-command add, remove and list tags for jails.EXAMPLES
Add 'prod' tag to myjail and yourjail:
# bastille tags 'myjail yourjail' add prodShow jails with the tag 'web':
# bastille tags ALL list web -
SYNOPSIS
bastille setup [-ax]
bastille setup [-ax]
bridge|linux|loopback|netgraph|firewall|shared|storage|vnetDESCRIPTION
The bastille setup sub-command will attempt to configure different options for your environment. -
NAME
bastille etcupdate – Update /etc for jail(s).SYNOPSIS
bastille etcupdate [-fx] bootstrap RELEASE
bastille etcupdate [-dx] TARGET update RELEASE
bastille etcupdate [-x] TARGET diff|resolveDESCRIPTION
The bastille etcupdate sub-command will bootstrap a tarball from RELEASE which can then be used to update the contents of /etc inside jails after performing an upgrade. -
SYNOPSIS
bastille clone [-alx] TARGET NEW_NAME IPThe bastille clone sub-command will create an exact duplicate of the targeted jail, giving it the specified NEW_NAME and IP address.
EXAMPLES
Clone myjail to newjail:
# bastille clone myjail newjail 10.23.3.4/24Clone myjail to newjail with DHCP (VNET only):
# bastille clone myjail newjail DHCPClone myjail to newjail while running, with debug mode:
# bastille clone -xl myjail newjail 10.23.3.4/24 -
The bastille convert sub-command will convert a thin jail to a thick jail if only the TARGET argument is given.
If a TARGET and RELEASE is specified, it will convert the jail into a custom release. The jail will remain intact, and you will have a duplicate of it to use a a release base for any new jails.
EXAMPLES
Convert myjail from thin to thick:
# bastille convert myjailCreate myrelease from myjail:
# bastille convert myjail myrelease -
NAME
bastille jcp – Copy file(s)/directorie(s) from jail to jail(s).SYNOPSIS
bastille jcp [-qx] SOURCE_JAIL JAIL_PATH DESTINATION_JAIL JAIL_PATHDESCRIPTION
The bastille jcp sub-command will copy files and directories from a single jail to any targeted jail(s).-q, --quiet : Suppress output.
-x, --debug : Enable debug mode.
EXAMPLES
Copy /etc/resolv.conf from myjail to yourjail:
# bastille jcp myjail /etc/resolv.conf yourjail /etc -
NAME
bastille rcp – Copy file(s)/directorie(s) from jail to host.SYNOPSIS
bastille rcp [-qx] TARGET JAIL_PATH HOST_PATHDESCRIPTION
The bastille rcp sub-command will copy JAIL_PATH to HOST_PATH from inside TARGET.-q, --quiet : Suppress output.
-x, --debug : Enable debug mode.
EXAMPLES
Copy /etc/resolv.conf.custom to host:
# bastille rcp myjail /etc/resolv.custom /jailstuff/etcCopy /etc to host quietly:
# bastille rcp -q myjail /etc /jailstuff/etc -
From `man bastille-restart`:
EXAMPLES
Restart all jails, ignoring stopped jail:
> bastille restart -i allRestart all jails, but only if boot=on:
> bastille restart -b allRestart all jails with a 5 second delay between each one:
> bastille restart -d 5 all -
NAME
bastille service – Manage services within jail(s).SYNOPSIS
bastille service [-ax] TARGET SERVICE ARGSDESCRIPTION
The bastille service sub-command can manage services in jails.-a, --auto
Auto mode. Start/stop jail(s) if required.-x, --debug
Enable debug mode.EXAMPLES
Start nginx in myjail:
> bastille service myjail nginx startStop caddy in myjail:
> bastille service myjail caddy stop