Enviado em 21/05/2015 - 08:51h
Olá...Enviado em 28/05/2015 - 19:42h
Stopping LSB: VirtualBox Linux Kernel
... ExecStartPre=/caminho/seu/script.sh ExecStart=... ...
Enviado em 21/05/2015 - 09:09h
Enviado em 21/05/2015 - 09:48h
Enviado em 22/05/2015 - 13:54h
Uma solução simples, no arquivo /etc/systemd/system/poweroff.target.wants/hwclock-save.service[Unit] Description=Synchronise Hardware Clock to System Clock DefaultDependencies=no Before=shutdown.target ConditionFileIsExecutable=!/usr/sbin/ntpd ConditionFileIsExecutable=!/usr/sbin/openntpd ConditionFileIsExecutable=!/usr/sbin/chrony ConditionVirtualization=!container [Service] Type=oneshot ExecStart=/sbin/hwclock -D --systohc ExecStart=/usr/scripts/teste.sh args (Adiciona essa linha apontando para seu script.) [Install] WantedBy=reboot.target halt.target poweroff.target
Enviado em 26/05/2015 - 10:38h
Bom dia![Unit] Description=Salva o estado das maquinas virtuais DefaultDependencies=no Before=shutdown.target halt.target reboot.target poweroff.target [Service] Type=oneshot ExecStart=/dados/dados/scripts/virtual/savestate_vms.sh args [Install] WantedBy=shutdown.target halt.target reboot.target poweroff.target
Enviado em 27/05/2015 - 09:42h
[Unit] Description=Save the state of the virtual machines Before=shutdown.target halt.target reboot.target poweroff.target [Service] ExecStart=/bin/true ExecStop=/dados/dados/scripts/virtual/savestate_vms.sh RemainAfterExit=yes [Install] WantedBy=multi-user.target
Stopping LSB: VirtualBox Linux Kernel
Enviado em 28/05/2015 - 13:42h
uname -v
SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24)
apt-get update
apt-get upgrade
[Unit] Description=VBox Virtual Machine Service Requires=systemd-modules-load.service After=systemd-modules-load.service [Service] User=administrador Group=vboxusers ExecStart=/usr/bin/VBoxHeadless -s shop-rga ExecStop=/usr/bin/VBoxManage controlvm shop-rga savestate [Install] WantedBy=multi-user.target
usermod -a -G vboxusers administrador
chown -R administrador.grupo /local/davm
chmod -R 1770 /local/davm
shop-rga.service - VBox Virtual Machine Service Loaded: loaded (/etc/systemd/system/shop-rga.service; enabled) Active: failed (Result: exit-code) since Qui 2015-05-28 13:25:42 BRT; 47s ago Process: 878 ExecStop=/usr/bin/VBoxManage controlvm shop-rga savestate (code=exited, status=1/FAILURE) Process: 786 ExecStart=/usr/bin/VBoxHeadless -s shop-rga (code=exited, status=1/FAILURE) Main PID: 786 (code=exited, status=1/FAILURE) Mai 28 13:25:33 servidor-rga VBoxHeadless[786]: WARNING: The vboxdrv kernel module is not loaded. Either there is no module Mai 28 13:25:33 servidor-rga VBoxHeadless[786]: available for the current kernel (3.16.0-4-amd64) or it failed to Mai 28 13:25:33 servidor-rga VBoxHeadless[786]: load. Please recompile the kernel module and install it by Mai 28 13:25:33 servidor-rga VBoxHeadless[786]: sudo /etc/init.d/vboxdrv setup Mai 28 13:25:33 servidor-rga VBoxHeadless[786]: You will not be able to start VMs until this problem is fixed. Mai 28 13:25:34 servidor-rga VBoxHeadless[786]: VBoxHeadless: Error -1908 in suplibOsInit! Mai 28 13:25:34 servidor-rga VBoxHeadless[786]: VBoxHeadless: Kernel driver not installed Mai 28 13:25:34 servidor-rga VBoxHeadless[786]: VBoxHeadless: Tip! Make sure the kernel module is loaded. It may also help to reinstall VirtualBox. Mai 28 13:25:36 servidor-rga systemd[1]: shop-rga.service: main process exited, code=exited, status=1/FAILURE Mai 28 13:25:42 servidor-rga VBoxManage[878]: VBoxManage: error: Machine in invalid state 2 -- saved Mai 28 13:25:42 servidor-rga systemd[1]: shop-rga.service: control process exited, code=exited status=1 Mai 28 13:25:42 servidor-rga systemd[1]: Unit shop-rga.service entered failed state.
systemctl start nomeprocesso
systemctl stop nomeprocesso
[Unit] Description=Iniciar os modulos do virtualbox Before=shop-rga.service [Service] User=root Type=oneshot ExecStart=/sbin/modprobe vboxdrv ExecStart=/sbin/modprobe vboxnetadp ExecStart=/sbin/modprobe vboxnetflt [Install] WantedBy=multi-user.target
Enviado em 28/05/2015 - 15:06h
Essa dica te ajuda?Automatizando digitação de códigos 2FA no browser
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Como converter imagens PNG/JPEG para SVG em linha de comando
Fez porcaria no teu repositório Git? Aprenda a restaurar uma versão anterior do seu código!
Restaurando Fontes de Download do Hydra no Linux
Atualizando "na marra" o YT-DLP quando começa a dar erro de downloads
Como instalar o WPS com interface e corretor ortográfico em PT-BR no Arch Linux
[AJUDA] Problemas ao atualizar BIOS da Gigabyte B550M K rev. 1.1 — “RO... (6)
Comprei thin client dell wyse tx0 3010 ele tá com Login é senha nao v... (0)