func Create(name string) error {
	err := checkPIDDir(Dir, true)
	if err != nil {
		return err
	}
	if name == "" {
		return errors.New("PID file name can't be blank")
	}
	pidFile := Dir + "/" + normalizePIDFilename(name)
	if fsutil.IsExist(pidFile) {
		os.Remove(pidFile)
	}
	return ioutil.WriteFile(
		pidFile,
		[]byte(fmt.Sprintf("%d\n", os.Getpid())),
		0644,
	)
}
////////////////////////////////////////////////////////////////////////////////// //
Create creates file with process PID file
package pid
import (
	"errors"
	"fmt"
	"io/ioutil"
	"os"
	"strconv"
	"strings"
	"pkg.re/essentialkaos/ek.v12/fsutil"
)
var Dir = "/var/run"