@ -551,12 +551,12 @@ func New(collection string) *Policy {
}
}
filchPrefix := filepath . Join ( dir , cmdName )
filchPrefix := filepath . Join ( dir , cmdName )
// Synology disks cannot hibernate if we're writing logs to them all the time.
// NA S disks cannot hibernate if we're writing logs to them all the time.
// https://github.com/tailscale/tailscale/issues/3551
// https://github.com/tailscale/tailscale/issues/3551
if runtime . GOOS == "linux" && distro . Get ( ) == distro . Synology {
if runtime . GOOS == "linux" && ( distro . Get ( ) == distro . Synology || distro . Get ( ) == distro . QNAP ) {
synologyT mpfsLogs := "/tmp/tailscale-logs"
t mpfsLogs := "/tmp/tailscale-logs"
if err := os . MkdirAll ( synologyT mpfsLogs, 0755 ) ; err == nil {
if err := os . MkdirAll ( t mpfsLogs, 0755 ) ; err == nil {
filchPrefix = filepath . Join ( synologyT mpfsLogs, cmdName )
filchPrefix = filepath . Join ( t mpfsLogs, cmdName )
filchOptions . MaxFileSize = 1 << 20
filchOptions . MaxFileSize = 1 << 20
} else {
} else {
// not a fatal error, we can leave the log files on the spinning disk
// not a fatal error, we can leave the log files on the spinning disk