diff --git a/main.py b/main.py new file mode 100644 index 0000000..b003801 --- /dev/null +++ b/main.py @@ -0,0 +1,10 @@ +#import os +import os + +#get pid +pid = os.getpid() + +#write pid to file /tmp/battleship_server.pid +with open('/tmp/battleship_server.pid', 'w') as f: + f.write(str(pid)) +print('battleship_server PID: ' + str(pid)) \ No newline at end of file