blob: 627eed4f5b669f32a012ae450dfae7d511631a00 [file] [log] [blame]
Hidehiko Abe27bebae2018-01-30 16:12:53 +09001# Copyright 2015 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
Garrick Evans635a3f02020-04-22 08:02:02 +09005description "Starts platform guest networking services"
Hidehiko Abe27bebae2018-01-30 16:12:53 +09006author "chromium-os-dev@chromium.org"
7
Garrick Evans0eaf9392020-05-11 15:40:30 +09008start on starting system-services
9stop on stopping system-services
Hidehiko Abe27bebae2018-01-30 16:12:53 +090010
Garrick Evans136c5ce2020-05-11 13:55:18 +090011respawn
12respawn limit 3 10
13
Garrick Evans11979532020-05-12 07:50:02 +090014# Killable for memory leaks.
15oom score -100
Garrick Evansc50426b2020-05-25 11:00:55 +090016# This limit is high to accommodate the adb-proxy child process which will
Garrick Evans11979532020-05-12 07:50:02 +090017# attempt to mmap over 200MB on first connect.
18limit as 400000000 unlimited
19
Nicole Anderson-Auf938c2a2021-05-13 23:13:30 +000020pre-start script
21 mkdir -p /run/netns
22 mount -o rw,nodev,noexec,nosuid,mode=0755,uid=1,gid=1 -t tmpfs tmpfs /run/netns
23end script
Garrick Evans49879532018-12-03 13:15:36 +090024
Nicole Anderson-Auf938c2a2021-05-13 23:13:30 +000025exec /usr/bin/patchpaneld