# Running Go Programs as a Background Process

DevFeed: [Running Go Programs as a Background Process](<https://devfeed.tech/articles/running-go-programs-as-a-background-process-22051.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2013/06/running-go-programs-as-background.html>)

Published: 2013-06-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [Processes](<https://devfeed.tech/topics/processes.md>), [Operating system](<https://devfeed.tech/topics/operating-system.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [ardan-labs](<https://devfeed.tech/tags/ardan-labs.md>), [blog](<https://devfeed.tech/tags/blog.md>), [c](<https://devfeed.tech/tags/c.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [go](<https://devfeed.tech/tags/go.md>), [go-programming](<https://devfeed.tech/tags/go-programming.md>), [golang](<https://devfeed.tech/tags/golang.md>), [linux](<https://devfeed.tech/tags/linux.md>), [mac](<https://devfeed.tech/tags/mac.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [process](<https://devfeed.tech/tags/process.md>), [programming](<https://devfeed.tech/tags/programming.md>), [running](<https://devfeed.tech/tags/running.md>)

## AI overview

A tutorial on running Go programs as background processes on macOS. It explains the distinction between daemons and agents, introduces launchd and launchctl, and shows how to configure a launchd .plist file to start, manage, and verify a daemon.

## Source excerpt

I have been writing Windows services in C/C++ and then in C# since 1999. Now that I am writing server based software in Go for the Linux OS I am completely lost. What is even more frustrating, is that for the first time the OS I am developing on (Mac OSX) is not the operating system I will be deploying my code on. That will be for another blog post.