I said that the script GlassFish_domain1 was not properly written but it is a mistake, the script was correct. The error was from systemd because it cannot recognize a script if this script don't has some extra information to systemd.
-- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to ntp in Ubuntu. https://bugs.launchpad.net/bugs/1727562 Title: package ntp 1:4.2.8p4+dfsg-3ubuntu5.7 failed to install/upgrade: sub- processo script post-installation instalado retornou estado de saída de erro 1 Status in ntp package in Ubuntu: Incomplete Bug description: ~$ lsb_release -rd Description: Ubuntu 16.04.3 LTS Release: 16.04 ~$ apt-cache policy ntp ntp: Instalado: 1:4.2.8p4+dfsg-3ubuntu5.7 Candidato: 1:4.2.8p4+dfsg-3ubuntu5.7 Tabela de versão: *** 1:4.2.8p4+dfsg-3ubuntu5.7 500 500 http://br.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages 100 /var/lib/dpkg/status 1:4.2.8p4+dfsg-3ubuntu5.5 500 500 http://br.archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages 1:4.2.8p4+dfsg-3ubuntu5 500 500 http://br.archive.ubuntu.com/ubuntu xenial/main amd64 Packages ProblemType: Package DistroRelease: Ubuntu 16.04 Package: ntp 1:4.2.8p4+dfsg-3ubuntu5.7 ProcVersionSignature: Ubuntu 4.4.0-97.120-generic 4.4.87 Uname: Linux 4.4.0-97-generic x86_64 NonfreeKernelModules: zfs zunicode zcommon znvpair zavl ApportVersion: 2.20.1-0ubuntu2.10 Architecture: amd64 Date: Sun Oct 22 03:09:46 2017 ErrorMessage: sub-processo script post-installation instalado retornou estado de saída de erro 1 InstallationDate: Installed on 2016-12-17 (312 days ago) InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1) ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.4.0-97-generic root=UUID=eb654371-ee60-40e3-b2c8-78e71eeb818f ro quiet splash acpi_enforce_resources=lax vt.handoff=7 RelatedPackageVersions: dpkg 1.18.4ubuntu1.2 apt 1.2.24 SourcePackage: ntp Title: package ntp 1:4.2.8p4+dfsg-3ubuntu5.7 failed to install/upgrade: sub-processo script post-installation instalado retornou estado de saída de erro 1 UpgradeStatus: Upgraded to xenial on 2016-12-18 (311 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/1727562/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp