Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
--- | |
version: 1 | |
disable_existing_loggers: False | |
formatters: | |
simple: | |
format: "%(name)-20s%(levelname)-8s%(message)s" | |
handlers: | |
console: | |
class: logging.StreamHandler | |
level: DEBUG |
#!/bin/sh | |
######################### | |
## | |
## Setup | |
## | |
######################### | |
# Set some vars |
Result: 1 | |
Items { | |
TemplateId: "BADGE_BATTLE_ATTACK_WON" | |
Badge { | |
BadgeType: BADGE_BATTLE_ATTACK_WON | |
BadgeRanks: 4 | |
Targets: "\nd\350\007" | |
} | |
} | |
Items { |
# /etc/rsyslog.conf Configuration file for rsyslog. | |
# | |
# For more information see | |
# /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html | |
# | |
# Default logging rules can be found in /etc/rsyslog.d/50-default.conf | |
# | |
# WARNING: This config has been converted to RainerScript format which could | |
# affect config files provided by other software in /etc/rsyslog.d/ | |
# It should behave the same as the legacy-format config file that ships |
import logging | |
from rest_framework import serializers | |
class GeneralModelSerializer(serializers.ModelSerializer): | |
""" General model serializer that will serialize a model object. It will return all the model fields. | |
""" | |
class Meta: | |
model = None |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
class Node: | |
def __init__(self, data): | |
self.data = data | |
self.next = None | |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
class Node: | |
def __init__(self, data): | |
self.data = data | |
self.next = None | |
docker pull gcr.azk8s.cn/google_containers/kube-cross:v1.12.4-1 | |
docker tag 02d0ab9d1c60 k8s.gcr.io/kube-cross:v1.12.4-1 |
# -*- coding: utf-8 -*- | |
import io | |
import os | |
import sys | |
import time | |
import wsgiref.util | |
import uwsgidecorators |