0

我想知道为什么 /etc/init.d/skeleton 中出现“Do NOT set -e”,因为我认为这总是很好的做法。

#! /bin/sh
### BEGIN INIT INFO
# Provides:          skeleton
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Example initscript
# Description:       This file should be used to construct scripts to be
#                    placed in /etc/init.d.
### END INIT INFO

# Author: Foo Bar <foobar@baz.org>
#
# Please remove the "Author" lines above and replace them
# with your own name if you copy and modify this script.

# Do NOT "set -e"

Debian wiki 推荐它(https://wiki.debian.org/LSBInitScripts/StatusSupport)所以我不知道我应该做什么。

4

0 回答 0