home.social

#manpagemonday — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #manpagemonday, aggregated by home.social.

  1. 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 myjail

    Console into myjail as bob:
    # bastille console myjail bob

    Console into a stopped jail as bob:
    # bastille console -a myjail bob

  2. SYNOPSIS
    bastille config [-x] set|add PROPERTY [VALUE]
    bastille config [-x] get|remove PROPERTY

    DESCRIPTION
    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 1

    Set to priority value of myjail:
    # bastille config myjail set priority 10

    Set the boot value:
    # bastille config myjail set boot off

  3. SYNOPSIS
    bastille template [-ax] TARGET|convert TEMPLATE

    DESCRIPTION
    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

  4. 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 prod

    Show jails with the tag 'web':
    # bastille tags ALL list web

  5. SYNOPSIS
    bastille setup [-ax]
    bastille setup [-ax]
    bridge|linux|loopback|netgraph|firewall|shared|storage|vnet

    DESCRIPTION
    The bastille setup sub-command will attempt to configure different options for your environment.

  6. 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|resolve

    DESCRIPTION
    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.

  7. SYNOPSIS
    bastille clone [-alx] TARGET NEW_NAME IP

    The 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/24

    Clone myjail to newjail with DHCP (VNET only):
    # bastille clone myjail newjail DHCP

    Clone myjail to newjail while running, with debug mode:
    # bastille clone -xl myjail newjail 10.23.3.4/24

  8. 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 myjail

    Create myrelease from myjail:
    # bastille convert myjail myrelease

  9. NAME
    bastille jcp – Copy file(s)/directorie(s) from jail to jail(s).

    SYNOPSIS
    bastille jcp [-qx] SOURCE_JAIL JAIL_PATH DESTINATION_JAIL JAIL_PATH

    DESCRIPTION
    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

  10. NAME
    bastille rcp – Copy file(s)/directorie(s) from jail to host.

    SYNOPSIS
    bastille rcp [-qx] TARGET JAIL_PATH HOST_PATH

    DESCRIPTION
    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/etc

    Copy /etc to host quietly:
    # bastille rcp -q myjail /etc /jailstuff/etc

  11. From `man bastille-restart`:

    EXAMPLES
    Restart all jails, ignoring stopped jail:
    > bastille restart -i all

    Restart all jails, but only if boot=on:
    > bastille restart -b all

    Restart all jails with a 5 second delay between each one:
    > bastille restart -d 5 all

  12. NAME
    bastille service – Manage services within jail(s).

    SYNOPSIS
    bastille service [-ax] TARGET SERVICE ARGS

    DESCRIPTION
    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 start

    Stop caddy in myjail:
    > bastille service myjail caddy stop